aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/tileentities/generators
diff options
context:
space:
mode:
authorRaven Szewczyk <git@eigenraven.me>2023-04-10 17:49:16 +0100
committerRaven Szewczyk <git@eigenraven.me>2023-04-10 17:49:16 +0100
commit8ac58626bd4caa9e49f58acc6b97ac031f6c2107 (patch)
tree0a8c7b737f1f2607fa6875309f4c6a5c2b8b3331 /src/main/java/gregtech/common/tileentities/generators
parentd795cf740c3b48b602d3bfb708ed9e6c492ad37d (diff)
downloadGT5-Unofficial-8ac58626bd4caa9e49f58acc6b97ac031f6c2107.tar.gz
GT5-Unofficial-8ac58626bd4caa9e49f58acc6b97ac031f6c2107.tar.bz2
GT5-Unofficial-8ac58626bd4caa9e49f58acc6b97ac031f6c2107.zip
Update spotless config to 0.2.2
Diffstat (limited to 'src/main/java/gregtech/common/tileentities/generators')
-rw-r--r--src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_DieselGenerator.java178
-rw-r--r--src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_GasTurbine.java180
-rw-r--r--src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_LightningRod.java41
-rw-r--r--src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_MagicEnergyConverter.java102
-rw-r--r--src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_MagicalEnergyAbsorber.java227
-rw-r--r--src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_NaquadahReactor.java113
-rw-r--r--src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_PlasmaGenerator.java50
-rw-r--r--src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_SteamTurbine.java145
8 files changed, 506 insertions, 530 deletions
diff --git a/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_DieselGenerator.java b/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_DieselGenerator.java
index 3db3a5eef9..e2aea182fb 100644
--- a/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_DieselGenerator.java
+++ b/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_DieselGenerator.java
@@ -31,15 +31,15 @@ public class GT_MetaTileEntity_DieselGenerator extends GT_MetaTileEntity_BasicGe
public GT_MetaTileEntity_DieselGenerator(int aID, String aName, String aNameRegional, int aTier) {
super(
- aID,
- aName,
- aNameRegional,
- aTier,
- new String[] { "Requires liquid Fuel",
- "Causes "
- + (int) (GT_Mod.gregtechproxy.mPollutionBaseDieselGeneratorPerSecond
- * GT_Mod.gregtechproxy.mPollutionDieselGeneratorReleasedByTier[aTier])
- + " Pollution per second" });
+ aID,
+ aName,
+ aNameRegional,
+ aTier,
+ new String[] { "Requires liquid Fuel",
+ "Causes "
+ + (int) (GT_Mod.gregtechproxy.mPollutionBaseDieselGeneratorPerSecond
+ * GT_Mod.gregtechproxy.mPollutionDieselGeneratorReleasedByTier[aTier])
+ + " Pollution per second" });
onConfigLoad();
}
@@ -75,9 +75,9 @@ public class GT_MetaTileEntity_DieselGenerator extends GT_MetaTileEntity_BasicGe
public void onConfigLoad() {
this.mEfficiency = GregTech_API.sMachineFile.get(
- ConfigCategories.machineconfig,
- "DieselGenerator.efficiency.tier." + this.mTier,
- (100 - this.mTier * 5));
+ ConfigCategories.machineconfig,
+ "DieselGenerator.efficiency.tier." + this.mTier,
+ (100 - this.mTier * 5));
}
@Override
@@ -102,13 +102,13 @@ public class GT_MetaTileEntity_DieselGenerator extends GT_MetaTileEntity_BasicGe
public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
if (aTick % 100 == 0 && mFluid != null && mFluid.amount > this.getCapacity()) {
GT_Log.err.println(
- "Dupe Abuse: " + aBaseMetaTileEntity.getOwnerName()
- + " Coords: "
- + aBaseMetaTileEntity.getXCoord()
- + " "
- + aBaseMetaTileEntity.getYCoord()
- + " "
- + aBaseMetaTileEntity.getZCoord());
+ "Dupe Abuse: " + aBaseMetaTileEntity.getOwnerName()
+ + " Coords: "
+ + aBaseMetaTileEntity.getXCoord()
+ + " "
+ + aBaseMetaTileEntity.getYCoord()
+ + " "
+ + aBaseMetaTileEntity.getZCoord());
aBaseMetaTileEntity.setToFire();
}
super.onPostTick(aBaseMetaTileEntity, aTick);
@@ -127,19 +127,19 @@ public class GT_MetaTileEntity_DieselGenerator extends GT_MetaTileEntity_BasicGe
final byte topFacing = (byte) ForgeDirection.UP.ordinal();
if (aBaseMetaTileEntity.getCoverIDAtSide(topFacing) == 0
- && !aBaseMetaTileEntity.getOpacityAtSide(topFacing)) {
+ && !aBaseMetaTileEntity.getOpacityAtSide(topFacing)) {
final double x = aBaseMetaTileEntity.getOffsetX(topFacing, 1) + 2D / 16D
- + XSTR_INSTANCE.nextFloat() * 14D / 16D;
+ + XSTR_INSTANCE.nextFloat() * 14D / 16D;
final double y = aBaseMetaTileEntity.getOffsetY(topFacing, 1) + 1D / 32D;
final double z = aBaseMetaTileEntity.getOffsetZ(topFacing, 1) + 2D / 16D
- + XSTR_INSTANCE.nextFloat() * 14D / 16D;
+ + XSTR_INSTANCE.nextFloat() * 14D / 16D;
new ParticleEventBuilder().setMotion(0D, 0D, 0D)
- .setPosition(x, y, z)
- .setWorld(getBaseMetaTileEntity().getWorld())
- .setIdentifier(ParticleFX.SMOKE)
- .run();
+ .setPosition(x, y, z)
+ .setWorld(getBaseMetaTileEntity().getWorld())
+ .setIdentifier(ParticleFX.SMOKE)
+ .run();
}
}
}
@@ -147,118 +147,118 @@ public class GT_MetaTileEntity_DieselGenerator extends GT_MetaTileEntity_BasicGe
@Override
public ITexture[] getFront(byte aColor) {
return new ITexture[] { super.getFront(aColor)[0],
- TextureFactory.of(
- TextureFactory.of(DIESEL_GENERATOR_FRONT),
- TextureFactory.builder()
- .addIcon(DIESEL_GENERATOR_FRONT_GLOW)
- .glow()
- .build()),
- OVERLAYS_ENERGY_OUT[this.mTier] };
+ TextureFactory.of(
+ TextureFactory.of(DIESEL_GENERATOR_FRONT),
+ TextureFactory.builder()
+ .addIcon(DIESEL_GENERATOR_FRONT_GLOW)
+ .glow()
+ .build()),
+ OVERLAYS_ENERGY_OUT[this.mTier] };
}
@Override
public ITexture[] getBack(byte aColor) {
return new ITexture[] { super.getBack(aColor)[0],
- TextureFactory.of(
- TextureFactory.of(DIESEL_GENERATOR_BACK),
- TextureFactory.builder()
- .addIcon(DIESEL_GENERATOR_BACK_GLOW)
- .glow()
- .build()) };
+ TextureFactory.of(
+ TextureFactory.of(DIESEL_GENERATOR_BACK),
+ TextureFactory.builder()
+ .addIcon(DIESEL_GENERATOR_BACK_GLOW)
+ .glow()
+ .build()) };
}
@Override
public ITexture[] getBottom(byte aColor) {
return new ITexture[] { super.getBottom(aColor)[0],
- TextureFactory.of(
- TextureFactory.of(DIESEL_GENERATOR_BOTTOM),
- TextureFactory.builder()
- .addIcon(DIESEL_GENERATOR_BOTTOM_GLOW)
- .glow()
- .build()) };
+ TextureFactory.of(
+ TextureFactory.of(DIESEL_GENERATOR_BOTTOM),
+ TextureFactory.builder()
+ .addIcon(DIESEL_GENERATOR_BOTTOM_GLOW)
+ .glow()
+ .build()) };
}
@Override
public ITexture[] getTop(byte aColor) {
return new ITexture[] { super.getTop(aColor)[0],
- TextureFactory.of(
- TextureFactory.of(DIESEL_GENERATOR_TOP),
- TextureFactory.builder()
- .addIcon(DIESEL_GENERATOR_TOP_GLOW)
- .glow()
- .build()) };
+ TextureFactory.of(
+ TextureFactory.of(DIESEL_GENERATOR_TOP),
+ TextureFactory.builder()
+ .addIcon(DIESEL_GENERATOR_TOP_GLOW)
+ .glow()
+ .build()) };
}
@Override
public ITexture[] getSides(byte aColor) {
return new ITexture[] { super.getSides(aColor)[0],
- TextureFactory.of(
- TextureFactory.of(DIESEL_GENERATOR_SIDE),
- TextureFactory.builder()
- .addIcon(DIESEL_GENERATOR_SIDE_GLOW)
- .glow()
- .build()) };
+ TextureFactory.of(
+ TextureFactory.of(DIESEL_GENERATOR_SIDE),
+ TextureFactory.builder()
+ .addIcon(DIESEL_GENERATOR_SIDE_GLOW)
+ .glow()
+ .build()) };
}
@Override
public ITexture[] getFrontActive(byte aColor) {
return new ITexture[] { super.getFrontActive(aColor)[0],
- TextureFactory.of(
- TextureFactory.of(DIESEL_GENERATOR_FRONT_ACTIVE),
- TextureFactory.builder()
- .addIcon(DIESEL_GENERATOR_FRONT_ACTIVE_GLOW)
- .glow()
- .build()),
- OVERLAYS_ENERGY_OUT[this.mTier] };
+ TextureFactory.of(
+ TextureFactory.of(DIESEL_GENERATOR_FRONT_ACTIVE),
+ TextureFactory.builder()
+ .addIcon(DIESEL_GENERATOR_FRONT_ACTIVE_GLOW)
+ .glow()
+ .build()),
+ OVERLAYS_ENERGY_OUT[this.mTier] };
}
@Override
public ITexture[] getBackActive(byte aColor) {
return new ITexture[] { super.getBackActive(aColor)[0],
- TextureFactory.of(
- TextureFactory.of(DIESEL_GENERATOR_BACK_ACTIVE),
- TextureFactory.builder()
- .addIcon(DIESEL_GENERATOR_BACK_ACTIVE_GLOW)
- .glow()
- .build()) };
+ TextureFactory.of(
+ TextureFactory.of(DIESEL_GENERATOR_BACK_ACTIVE),
+ TextureFactory.builder()
+ .addIcon(DIESEL_GENERATOR_BACK_ACTIVE_GLOW)
+ .glow()
+ .build()) };
}
@Override
public ITexture[] getBottomActive(byte aColor) {
return new ITexture[] { super.getBottomActive(aColor)[0],
- TextureFactory.of(
- TextureFactory.of(DIESEL_GENERATOR_BOTTOM_ACTIVE),
- TextureFactory.builder()
- .addIcon(DIESEL_GENERATOR_BOTTOM_ACTIVE_GLOW)
- .glow()
- .build()) };
+ TextureFactory.of(
+ TextureFactory.of(DIESEL_GENERATOR_BOTTOM_ACTIVE),
+ TextureFactory.builder()
+ .addIcon(DIESEL_GENERATOR_BOTTOM_ACTIVE_GLOW)
+ .glow()
+ .build()) };
}
@Override
public ITexture[] getTopActive(byte aColor) {
return new ITexture[] { super.getTopActive(aColor)[0],
- TextureFactory.of(
- TextureFactory.of(DIESEL_GENERATOR_TOP_ACTIVE),
- TextureFactory.builder()
- .addIcon(DIESEL_GENERATOR_TOP_ACTIVE_GLOW)
- .glow()
- .build()) };
+ TextureFactory.of(
+ TextureFactory.of(DIESEL_GENERATOR_TOP_ACTIVE),
+ TextureFactory.builder()
+ .addIcon(DIESEL_GENERATOR_TOP_ACTIVE_GLOW)
+ .glow()
+ .build()) };
}
@Override
public ITexture[] getSidesActive(byte aColor) {
return new ITexture[] { super.getSidesActive(aColor)[0],
- TextureFactory.of(
- TextureFactory.of(DIESEL_GENERATOR_SIDE_ACTIVE),
- TextureFactory.builder()
- .addIcon(DIESEL_GENERATOR_SIDE_ACTIVE_GLOW)
- .glow()
- .build()) };
+ TextureFactory.of(
+ TextureFactory.of(DIESEL_GENERATOR_SIDE_ACTIVE),
+ TextureFactory.builder()
+ .addIcon(DIESEL_GENERATOR_SIDE_ACTIVE_GLOW)
+ .glow()
+ .build()) };
}
@Override
public int getPollution() {
return (int) (GT_Mod.gregtechproxy.mPollutionBaseDieselGeneratorPerSecond
- * GT_Mod.gregtechproxy.mPollutionDieselGeneratorReleasedByTier[mTier]);
+ * GT_Mod.gregtechproxy.mPollutionDieselGeneratorReleasedByTier[mTier]);
}
}
diff --git a/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_GasTurbine.java b/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_GasTurbine.java
index 2e0279552a..1c8aeebb40 100644
--- a/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_GasTurbine.java
+++ b/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_GasTurbine.java
@@ -19,30 +19,30 @@ public class GT_MetaTileEntity_GasTurbine extends GT_MetaTileEntity_BasicGenerat
@Deprecated
public GT_MetaTileEntity_GasTurbine(int aID, String aName, String aNameRegional, int aTier) {
super(
- aID,
- aName,
- aNameRegional,
- aTier,
- new String[] { "Requires flammable Gasses",
- "Causes "
- + (int) (GT_Mod.gregtechproxy.mPollutionBaseGasTurbinePerSecond
- * GT_Mod.gregtechproxy.mPollutionGasTurbineReleasedByTier[aTier])
- + " Pollution per second" });
+ aID,
+ aName,
+ aNameRegional,
+ aTier,
+ new String[] { "Requires flammable Gasses",
+ "Causes "
+ + (int) (GT_Mod.gregtechproxy.mPollutionBaseGasTurbinePerSecond
+ * GT_Mod.gregtechproxy.mPollutionGasTurbineReleasedByTier[aTier])
+ + " Pollution per second" });
this.mEfficiency = 100 - aTier * 5;
onConfigLoad();
}
public GT_MetaTileEntity_GasTurbine(int aID, String aName, String aNameRegional, int aTier, int mEfficiency) {
super(
- aID,
- aName,
- aNameRegional,
- aTier,
- new String[] { "Requires flammable Gasses",
- "Causes "
- + (int) (GT_Mod.gregtechproxy.mPollutionBaseGasTurbinePerSecond
- * GT_Mod.gregtechproxy.mPollutionGasTurbineReleasedByTier[aTier])
- + " Pollution per second" });
+ aID,
+ aName,
+ aNameRegional,
+ aTier,
+ new String[] { "Requires flammable Gasses",
+ "Causes "
+ + (int) (GT_Mod.gregtechproxy.mPollutionBaseGasTurbinePerSecond
+ * GT_Mod.gregtechproxy.mPollutionGasTurbineReleasedByTier[aTier])
+ + " Pollution per second" });
this.mEfficiency = mEfficiency;
onConfigLoad();
}
@@ -62,7 +62,7 @@ public class GT_MetaTileEntity_GasTurbine extends GT_MetaTileEntity_BasicGenerat
}
public GT_MetaTileEntity_GasTurbine(String aName, int aTier, String[] aDescription, ITexture[][][] aTextures,
- int mEfficiency) {
+ int mEfficiency) {
super(aName, aTier, aDescription, aTextures);
this.mEfficiency = mEfficiency;
onConfigLoad();
@@ -76,11 +76,11 @@ public class GT_MetaTileEntity_GasTurbine extends GT_MetaTileEntity_BasicGenerat
@Override
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
return new GT_MetaTileEntity_GasTurbine(
- this.mName,
- this.mTier,
- this.mDescriptionArray,
- this.mTextures,
- this.mEfficiency);
+ this.mName,
+ this.mTier,
+ this.mDescriptionArray,
+ this.mTextures,
+ this.mEfficiency);
}
@Override
@@ -94,10 +94,8 @@ public class GT_MetaTileEntity_GasTurbine extends GT_MetaTileEntity_BasicGenerat
}
public void onConfigLoad() {
- this.mEfficiency = GregTech_API.sMachineFile.get(
- ConfigCategories.machineconfig,
- "GasTurbine.efficiency.tier." + this.mTier,
- this.mEfficiency);
+ this.mEfficiency = GregTech_API.sMachineFile
+ .get(ConfigCategories.machineconfig, "GasTurbine.efficiency.tier." + this.mTier, this.mEfficiency);
}
@Override
@@ -108,118 +106,118 @@ public class GT_MetaTileEntity_GasTurbine extends GT_MetaTileEntity_BasicGenerat
@Override
public ITexture[] getFront(byte aColor) {
return new ITexture[] { super.getFront(aColor)[0],
- TextureFactory.of(
- TextureFactory.of(GAS_TURBINE_FRONT),
- TextureFactory.builder()
- .addIcon(GAS_TURBINE_FRONT_GLOW)
- .glow()
- .build()),
- OVERLAYS_ENERGY_OUT[this.mTier] };
+ TextureFactory.of(
+ TextureFactory.of(GAS_TURBINE_FRONT),
+ TextureFactory.builder()
+ .addIcon(GAS_TURBINE_FRONT_GLOW)
+ .glow()
+ .build()),
+ OVERLAYS_ENERGY_OUT[this.mTier] };
}
@Override
public ITexture[] getBack(byte aColor) {
return new ITexture[] { super.getBack(aColor)[0],
- TextureFactory.of(
- TextureFactory.of(GAS_TURBINE_BACK),
- TextureFactory.builder()
- .addIcon(GAS_TURBINE_BACK_GLOW)
- .glow()
- .build()) };
+ TextureFactory.of(
+ TextureFactory.of(GAS_TURBINE_BACK),
+ TextureFactory.builder()
+ .addIcon(GAS_TURBINE_BACK_GLOW)
+ .glow()
+ .build()) };
}
@Override
public ITexture[] getBottom(byte aColor) {
return new ITexture[] { super.getBottom(aColor)[0],
- TextureFactory.of(
- TextureFactory.of(GAS_TURBINE_BOTTOM),
- TextureFactory.builder()
- .addIcon(GAS_TURBINE_BOTTOM_GLOW)
- .glow()
- .build()) };
+ TextureFactory.of(
+ TextureFactory.of(GAS_TURBINE_BOTTOM),
+ TextureFactory.builder()
+ .addIcon(GAS_TURBINE_BOTTOM_GLOW)
+ .glow()
+ .build()) };
}
@Override
public ITexture[] getTop(byte aColor) {
return new ITexture[] { super.getTop(aColor)[0],
- TextureFactory.of(
- TextureFactory.of(GAS_TURBINE_TOP),
- TextureFactory.builder()
- .addIcon(GAS_TURBINE_TOP_GLOW)
- .glow()
- .build()) };
+ TextureFactory.of(
+ TextureFactory.of(GAS_TURBINE_TOP),
+ TextureFactory.builder()
+ .addIcon(GAS_TURBINE_TOP_GLOW)
+ .glow()
+ .build()) };
}
@Override
public ITexture[] getSides(byte aColor) {
return new ITexture[] { super.getSides(aColor)[0],
- TextureFactory.of(
- TextureFactory.of(GAS_TURBINE_SIDE),
- TextureFactory.builder()
- .addIcon(GAS_TURBINE_SIDE_GLOW)
- .glow()
- .build()) };
+ TextureFactory.of(
+ TextureFactory.of(GAS_TURBINE_SIDE),
+ TextureFactory.builder()
+ .addIcon(GAS_TURBINE_SIDE_GLOW)
+ .glow()
+ .build()) };
}
@Override
public ITexture[] getFrontActive(byte aColor) {
return new ITexture[] { super.getFrontActive(aColor)[0],
- TextureFactory.of(
- TextureFactory.of(GAS_TURBINE_FRONT_ACTIVE),
- TextureFactory.builder()
- .addIcon(GAS_TURBINE_FRONT_ACTIVE_GLOW)
- .glow()
- .build()),
- OVERLAYS_ENERGY_OUT[this.mTier] };
+ TextureFactory.of(
+ TextureFactory.of(GAS_TURBINE_FRONT_ACTIVE),
+ TextureFactory.builder()
+ .addIcon(GAS_TURBINE_FRONT_ACTIVE_GLOW)
+ .glow()
+ .build()),
+ OVERLAYS_ENERGY_OUT[this.mTier] };
}
@Override
public ITexture[] getBackActive(byte aColor) {
return new ITexture[] { super.getBackActive(aColor)[0],
- TextureFactory.of(
- TextureFactory.of(GAS_TURBINE_BACK_ACTIVE),
- TextureFactory.builder()
- .addIcon(GAS_TURBINE_BACK_ACTIVE_GLOW)
- .glow()
- .build()) };
+ TextureFactory.of(
+ TextureFactory.of(GAS_TURBINE_BACK_ACTIVE),
+ TextureFactory.builder()
+ .addIcon(GAS_TURBINE_BACK_ACTIVE_GLOW)
+ .glow()
+ .build()) };
}
@Override
public ITexture[] getBottomActive(byte aColor) {
return new ITexture[] { super.getBottomActive(aColor)[0],
- TextureFactory.of(
- TextureFactory.of(GAS_TURBINE_BOTTOM_ACTIVE),
- TextureFactory.builder()
- .addIcon(GAS_TURBINE_BOTTOM_ACTIVE_GLOW)
- .glow()
- .build()) };
+ TextureFactory.of(
+ TextureFactory.of(GAS_TURBINE_BOTTOM_ACTIVE),
+ TextureFactory.builder()
+ .addIcon(GAS_TURBINE_BOTTOM_ACTIVE_GLOW)
+ .glow()
+ .build()) };
}
@Override
public ITexture[] getTopActive(byte aColor) {
return new ITexture[] { super.getTopActive(aColor)[0],
- TextureFactory.of(
- TextureFactory.of(GAS_TURBINE_TOP_ACTIVE),
- TextureFactory.builder()
- .addIcon(GAS_TURBINE_TOP_ACTIVE_GLOW)
- .glow()
- .build()) };
+ TextureFactory.of(
+ TextureFactory.of(GAS_TURBINE_TOP_ACTIVE),
+ TextureFactory.builder()
+ .addIcon(GAS_TURBINE_TOP_ACTIVE_GLOW)
+ .glow()
+ .build()) };
}
@Override
public ITexture[] getSidesActive(byte aColor) {
return new ITexture[] { super.getSidesActive(aColor)[0],
- TextureFactory.of(
- TextureFactory.of(GAS_TURBINE_SIDE_ACTIVE),
- TextureFactory.builder()
- .addIcon(GAS_TURBINE_SIDE_ACTIVE_GLOW)
- .glow()
- .build()) };
+ TextureFactory.of(
+ TextureFactory.of(GAS_TURBINE_SIDE_ACTIVE),
+ TextureFactory.builder()
+ .addIcon(GAS_TURBINE_SIDE_ACTIVE_GLOW)
+ .glow()
+ .build()) };
}
@Override
public int getPollution() {
return (int) (GT_Mod.gregtechproxy.mPollutionBaseGasTurbinePerSecond
- * GT_Mod.gregtechproxy.mPollutionGasTurbineReleasedByTier[mTier]);
+ * GT_Mod.gregtechproxy.mPollutionGasTurbineReleasedByTier[mTier]);
}
}
diff --git a/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_LightningRod.java b/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_LightningRod.java
index 152a849d5a..33066f7617 100644
--- a/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_LightningRod.java
+++ b/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_LightningRod.java
@@ -24,31 +24,29 @@ public class GT_MetaTileEntity_LightningRod extends GT_MetaTileEntity_TieredMach
}
public GT_MetaTileEntity_LightningRod(String aName, int aTier, int aInvSlotCount, String aDescription,
- ITexture[][][] aTextures) {
+ ITexture[][][] aTextures) {
super(aName, aTier, aInvSlotCount, aDescription, aTextures);
}
public GT_MetaTileEntity_LightningRod(String aName, int aTier, int aInvSlotCount, String[] aDescription,
- ITexture[][][] aTextures) {
+ ITexture[][][] aTextures) {
super(aName, aTier, aInvSlotCount, aDescription, aTextures);
}
@Override
public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex,
- boolean aActive, boolean aRedstone) {
+ boolean aActive, boolean aRedstone) {
if (aSide != ForgeDirection.UP.ordinal()) {
return new ITexture[] { BlockIcons.MACHINE_CASINGS[mTier][aColorIndex + 1],
- BlockIcons.OVERLAYS_ENERGY_OUT_POWER[mTier] };
+ BlockIcons.OVERLAYS_ENERGY_OUT_POWER[mTier] };
}
if (!aActive) return new ITexture[] { BlockIcons.MACHINE_CASINGS[mTier][aColorIndex + 1],
- TextureFactory.of(BlockIcons.MACHINE_CASING_FUSION_GLASS) };
- return new ITexture[] {
- BlockIcons.MACHINE_CASINGS[mTier][aColorIndex + 1], TextureFactory.of(
- BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW),
- TextureFactory.builder()
- .addIcon(BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW_GLOW)
- .glow()
- .build() };
+ TextureFactory.of(BlockIcons.MACHINE_CASING_FUSION_GLASS) };
+ return new ITexture[] { BlockIcons.MACHINE_CASINGS[mTier][aColorIndex + 1],
+ TextureFactory.of(BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW), TextureFactory.builder()
+ .addIcon(BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW_GLOW)
+ .glow()
+ .build() };
}
@Override
@@ -59,11 +57,11 @@ public class GT_MetaTileEntity_LightningRod extends GT_MetaTileEntity_TieredMach
@Override
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
return new GT_MetaTileEntity_LightningRod(
- this.mName,
- this.mTier,
- this.mInventory.length,
- this.mDescriptionArray,
- this.mTextures);
+ this.mName,
+ this.mTier,
+ this.mInventory.length,
+ this.mDescriptionArray,
+ this.mTextures);
}
@Override
@@ -86,8 +84,8 @@ public class GT_MetaTileEntity_LightningRod extends GT_MetaTileEntity_TieredMach
for (int i = aBaseMetaTileEntity.getYCoord() + 1; i < aWorld.getHeight() - 1; i++) {
if (isRodValid && aBaseMetaTileEntity.getBlock(aX, i, aZ)
- .getUnlocalizedName()
- .equals("blockFenceIron")) {
+ .getUnlocalizedName()
+ .equals("blockFenceIron")) {
aRodValue++;
} else {
isRodValid = false;
@@ -99,9 +97,8 @@ public class GT_MetaTileEntity_LightningRod extends GT_MetaTileEntity_TieredMach
}
if (!aWorld.isThundering() && ((aY + aRodValue) < 128)) aRodValue = 0;
if (XSTR_INSTANCE.nextInt(4 * aWorld.getHeight()) < (aRodValue * (aY + aRodValue))) {
- aBaseMetaTileEntity.increaseStoredEnergyUnits(
- maxEUStore() - aBaseMetaTileEntity.getStoredEU(),
- false);
+ aBaseMetaTileEntity
+ .increaseStoredEnergyUnits(maxEUStore() - aBaseMetaTileEntity.getStoredEU(), false);
aWorld.addWeatherEffect(new EntityLightningBolt(aWorld, aX, aY + aRodValue, aZ));
}
}
diff --git a/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_MagicEnergyConverter.java b/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_MagicEnergyConverter.java
index b67993770d..17089403c3 100644
--- a/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_MagicEnergyConverter.java
+++ b/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_MagicEnergyConverter.java
@@ -29,13 +29,13 @@ public class GT_MetaTileEntity_MagicEnergyConverter extends GT_MetaTileEntity_Ba
}
public GT_MetaTileEntity_MagicEnergyConverter(String aName, int aTier, String aDescription,
- ITexture[][][] aTextures) {
+ ITexture[][][] aTextures) {
super(aName, aTier, aDescription, aTextures);
onConfigLoad();
}
public GT_MetaTileEntity_MagicEnergyConverter(String aName, int aTier, String[] aDescription,
- ITexture[][][] aTextures) {
+ ITexture[][][] aTextures) {
super(aName, aTier, aDescription, aTextures);
onConfigLoad();
}
@@ -48,10 +48,10 @@ public class GT_MetaTileEntity_MagicEnergyConverter extends GT_MetaTileEntity_Ba
@Override
public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
return new GT_MetaTileEntity_MagicEnergyConverter(
- this.mName,
- this.mTier,
- this.mDescriptionArray,
- this.mTextures);
+ this.mName,
+ this.mTier,
+ this.mDescriptionArray,
+ this.mTextures);
}
@Override
@@ -66,9 +66,9 @@ public class GT_MetaTileEntity_MagicEnergyConverter extends GT_MetaTileEntity_Ba
public void onConfigLoad() {
this.mEfficiency = GregTech_API.sMachineFile.get(
- ConfigCategories.machineconfig,
- "MagicEnergyConverter.efficiency.tier." + this.mTier,
- 100 - this.mTier * 5);
+ ConfigCategories.machineconfig,
+ "MagicEnergyConverter.efficiency.tier." + this.mTier,
+ 100 - this.mTier * 5);
}
@Override
@@ -79,93 +79,93 @@ public class GT_MetaTileEntity_MagicEnergyConverter extends GT_MetaTileEntity_Ba
@Override
public ITexture[] getFront(byte aColor) {
return new ITexture[] { super.getFront(aColor)[0], TextureFactory.of(MACHINE_CASING_MAGIC),
- TextureFactory.builder()
- .addIcon(MACHINE_CASING_MAGIC_GLOW)
- .glow()
- .build(),
- OVERLAYS_ENERGY_OUT[mTier] };
+ TextureFactory.builder()
+ .addIcon(MACHINE_CASING_MAGIC_GLOW)
+ .glow()
+ .build(),
+ OVERLAYS_ENERGY_OUT[mTier] };
}
@Override
public ITexture[] getBack(byte aColor) {
return new ITexture[] { super.getBack(aColor)[0], TextureFactory.of(MACHINE_CASING_MAGIC_FRONT),
- TextureFactory.builder()
- .addIcon(MACHINE_CASING_MAGIC_FRONT_GLOW)
- .glow()
- .build() };
+ TextureFactory.builder()
+ .addIcon(MACHINE_CASING_MAGIC_FRONT_GLOW)
+ .glow()
+ .build() };
}
@Override
public ITexture[] getBottom(byte aColor) {
return new ITexture[] { super.getBottom(aColor)[0], TextureFactory.of(MACHINE_CASING_MAGIC),
- TextureFactory.builder()
- .addIcon(MACHINE_CASING_MAGIC_GLOW)
- .glow()
- .build() };
+ TextureFactory.builder()
+ .addIcon(MACHINE_CASING_MAGIC_GLOW)
+ .glow()
+ .build() };
}
@Override
public ITexture[] getTop(byte aColor) {
return new ITexture[] { super.getTop(aColor)[0], TextureFactory.of(MACHINE_CASING_MAGIC),
- TextureFactory.builder()
- .addIcon(MACHINE_CASING_MAGIC_GLOW)
- .glow()
- .build() };
+ TextureFactory.builder()
+ .addIcon(MACHINE_CASING_MAGIC_GLOW)
+ .glow()
+ .build() };
}
@Override
public ITexture[] getSides(byte aColor) {
return new ITexture[] { super.getSides(aColor)[0], TextureFactory.of(MACHINE_CASING_MAGIC),
- TextureFactory.builder()
- .addIcon(MACHINE_CASING_MAGIC_GLOW)
- .glow()
- .build() };
+ TextureFactory.builder()
+ .addIcon(MACHINE_CASING_MAGIC_GLOW)
+ .glow()
+ .build() };
}
@Override
public ITexture[] getFrontActive(byte aColor) {
return new ITexture[] { super.getFrontActive(aColor)[0], TextureFactory.of(MACHINE_CASING_MAGIC_ACTIVE),
- TextureFactory.builder()
- .addIcon(MACHINE_CASING_MAGIC_ACTIVE_GLOW)
- .glow()
- .build(),
- OVERLAYS_ENERGY_OUT[mTier] };
+ TextureFactory.builder()
+ .addIcon(MACHINE_CASING_MAGIC_ACTIVE_GLOW)
+ .glow()
+ .build(),
+ OVERLAYS_ENERGY_OUT[mTier] };
}
@Override
public ITexture[] getBackActive(byte aColor) {
return new ITexture[] { super.getBackActive(aColor)[0], TextureFactory.of(MACHINE_CASING_MAGIC_FRONT_ACTIVE),
- TextureFactory.builder()
-