diff options
| author | Blood-Asp <bloodasphendrik@gmail.com> | 2015-06-24 19:34:37 +0200 |
|---|---|---|
| committer | Blood-Asp <bloodasphendrik@gmail.com> | 2015-06-24 19:34:37 +0200 |
| commit | 6591e802e925a1f57d62b8d506936d6d5e9fde3c (patch) | |
| tree | 53e53ff64d2902c639951bd1d41f942ee171f836 /main/java/gregtech/common/tileentities/generators | |
| parent | 55c596b008807a7cb4b58422efd07636425be1e2 (diff) | |
| parent | a1504799f44ba2debdfef06317f24e7f9c1129d6 (diff) | |
| download | GT5-Unofficial-6591e802e925a1f57d62b8d506936d6d5e9fde3c.tar.gz GT5-Unofficial-6591e802e925a1f57d62b8d506936d6d5e9fde3c.tar.bz2 GT5-Unofficial-6591e802e925a1f57d62b8d506936d6d5e9fde3c.zip | |
Merge pull request #71 from aerospark/devel
Linenumber strip
Well, let's try this, but i'm not going trough all classes to make sure there is nothing broken.
Diffstat (limited to 'main/java/gregtech/common/tileentities/generators')
8 files changed, 809 insertions, 809 deletions
diff --git a/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_DieselGenerator.java b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_DieselGenerator.java index 82c91b5e6f..83c731a632 100644 --- a/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_DieselGenerator.java +++ b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_DieselGenerator.java @@ -1,129 +1,129 @@ -/* 1: */ package gregtech.common.tileentities.generators;
-/* 2: */
-/* 3: */ import cpw.mods.fml.common.registry.GameRegistry;
+package gregtech.common.tileentities.generators;
+
+import cpw.mods.fml.common.registry.GameRegistry;
import gregtech.api.GregTech_API;
import gregtech.api.enums.ConfigCategories;
-/* 4: */ import gregtech.api.enums.ItemList;
+import gregtech.api.enums.ItemList;
import gregtech.api.enums.Textures;
-/* 5: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 6: */ import gregtech.api.interfaces.ITexture;
-/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 8: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 9: */ import gregtech.api.metatileentity.implementations.*;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.*;
import gregtech.api.objects.GT_ArrayList;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.objects.GT_RenderedTexture;
import gregtech.api.util.GT_Config;
-/* 11: */ import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_ModHandler;
import gregtech.api.util.GT_Recipe;
-/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 13: */ import net.minecraft.item.ItemStack;
-/* 14: */
-/* 15: */ public class GT_MetaTileEntity_DieselGenerator
-/* 16: */ extends GT_MetaTileEntity_BasicGenerator
-/* 17: */ {
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import net.minecraft.item.ItemStack;
+
+public class GT_MetaTileEntity_DieselGenerator
+ extends GT_MetaTileEntity_BasicGenerator
+{
public int mEfficiency;
-/* 18: */ public boolean isOutputFacing(byte aSide)
-/* 19: */ {
-/* 20:16 */ return aSide == getBaseMetaTileEntity().getFrontFacing();
-/* 21: */ }
-/* 22: */
-/* 23: */ public GT_MetaTileEntity_DieselGenerator(int aID, String aName, String aNameRegional, int aTier)
-/* 24: */ {
-/* 25:19 */ super(aID, aName, aNameRegional, aTier, "Requires liquid Fuel", new ITexture[0]);
+ public boolean isOutputFacing(byte aSide)
+ {
+ return aSide == getBaseMetaTileEntity().getFrontFacing();
+ }
+
+ public GT_MetaTileEntity_DieselGenerator(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, "Requires liquid Fuel", new ITexture[0]);
onConfigLoad();
-/* 26: */ }
-/* 27: */
-/* 28: */ public GT_MetaTileEntity_DieselGenerator(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
-/* 29: */ {
-/* 30:23 */ super(aName, aTier, aDescription, aTextures);
+ }
+
+ public GT_MetaTileEntity_DieselGenerator(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aTier, aDescription, aTextures);
onConfigLoad();
-/* 31: */ }
-/* 32: */
-/* 33: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 34: */ {
-/* 35:28 */ return new GT_MetaTileEntity_DieselGenerator(this.mName, this.mTier, this.mDescription, this.mTextures);
-/* 36: */ }
-/* 37: */
-/* 38: */ public GT_Recipe.GT_Recipe_Map getRecipes()
-/* 39: */ {
-/* 40:33 */ return GT_Recipe.GT_Recipe_Map.sDieselFuels;
-/* 41: */ }
-/* 42: */
-/* 43: */ public int getCapacity()
-/* 44: */ {
-/* 45:38 */ return 16000;
-/* 46: */ }
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_DieselGenerator(this.mName, this.mTier, this.mDescription, this.mTextures);
+ }
+
+ public GT_Recipe.GT_Recipe_Map getRecipes()
+ {
+ return GT_Recipe.GT_Recipe_Map.sDieselFuels;
+ }
+
+ public int getCapacity()
+ {
+ return 16000;
+ }
-/* 47: */ public void onConfigLoad()
-/* 39: */ {
+ public void onConfigLoad()
+ {
this.mEfficiency =GregTech_API.sMachineFile.get(ConfigCategories.machineconfig, "DieselGenerator.efficiency.tier."+this.mTier, (100 - this.mTier * 10));
}
-/* 48: */ public int getEfficiency()
-/* 49: */ {
-/* 50:43 */ return this.mEfficiency;
-/* 51: */ }
-/* 52: */
-/* 53: */ public int getFuelValue(ItemStack aStack)
-/* 54: */ {
-/* 55:48 */ int rValue = Math.max(GT_ModHandler.getFuelCanValue(aStack) * 6 / 5, super.getFuelValue(aStack));
-/* 56:49 */ if (ItemList.Fuel_Can_Plastic_Filled.isStackEqual(aStack, false, true)) {
-/* 57:49 */ rValue = Math.max(rValue, GameRegistry.getFuelValue(aStack) * 3);
-/* 58: */ }
-/* 59:50 */ return rValue;
-/* 60: */ }
-/* 61: */
-/* 62: */ public ITexture[] getFront(byte aColor)
-/* 63: */ {
-/* 64:53 */ return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_FRONT), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] };
-/* 65: */ }
-/* 66: */
-/* 67: */ public ITexture[] getBack(byte aColor)
-/* 68: */ {
-/* 69:54 */ return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_BACK) };
-/* 70: */ }
-/* 71: */
-/* 72: */ public ITexture[] getBottom(byte aColor)
-/* 73: */ {
-/* 74:55 */ return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_BOTTOM) };
-/* 75: */ }
-/* 76: */
-/* 77: */ public ITexture[] getTop(byte aColor)
-/* 78: */ {
-/* 79:56 */ return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_TOP) };
-/* 80: */ }
-/* 81: */
-/* 82: */ public ITexture[] getSides(byte aColor)
-/* 83: */ {
-/* 84:57 */ return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_SIDE) };
-/* 85: */ }
-/* 86: */
-/* 87: */ public ITexture[] getFrontActive(byte aColor)
-/* 88: */ {
-/* 89:58 */ return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_FRONT_ACTIVE), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] };
-/* 90: */ }
-/* 91: */
-/* 92: */ public ITexture[] getBackActive(byte aColor)
-/* 93: */ {
-/* 94:59 */ return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_BACK_ACTIVE) };
-/* 95: */ }
-/* 96: */
-/* 97: */ public ITexture[] getBottomActive(byte aColor)
-/* 98: */ {
-/* 99:60 */ return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_BOTTOM_ACTIVE) };
-/* :0: */ }
-/* :1: */
-/* :2: */ public ITexture[] getTopActive(byte aColor)
-/* :3: */ {
-/* :4:61 */ return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_TOP_ACTIVE) };
-/* :5: */ }
-/* :6: */
-/* :7: */ public ITexture[] getSidesActive(byte aColor)
-/* :8: */ {
-/* :9:62 */ return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_SIDE_ACTIVE) };
-/* ;0: */ }
-/* ;1: */ }
+ public int getEfficiency()
+ {
+ return this.mEfficiency;
+ }
+
+ public int getFuelValue(ItemStack aStack)
+ {
+ int rValue = Math.max(GT_ModHandler.getFuelCanValue(aStack) * 6 / 5, super.getFuelValue(aStack));
+ if (ItemList.Fuel_Can_Plastic_Filled.isStackEqual(aStack, false, true)) {
+ rValue = Math.max(rValue, GameRegistry.getFuelValue(aStack) * 3);
+ }
+ return rValue;
+ }
+
+ public ITexture[] getFront(byte aColor)
+ {
+ return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_FRONT), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] };
+ }
+
+ public ITexture[] getBack(byte aColor)
+ {
+ return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_BACK) };
+ }
+
+ public ITexture[] getBottom(byte aColor)
+ {
+ return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_BOTTOM) };
+ }
+
+ public ITexture[] getTop(byte aColor)
+ {
+ return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_TOP) };
+ }
+
+ public ITexture[] getSides(byte aColor)
+ {
+ return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_SIDE) };
+ }
+
+ public ITexture[] getFrontActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_FRONT_ACTIVE), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] };
+ }
+
+ public ITexture[] getBackActive(byte aColor)
+ {
+ return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_BACK_ACTIVE) };
+ }
+
+ public ITexture[] getBottomActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_BOTTOM_ACTIVE) };
+ }
+
+ public ITexture[] getTopActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_TOP_ACTIVE) };
+ }
+
+ public ITexture[] getSidesActive(byte aColor)
+ {
+ return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_SIDE_ACTIVE) };
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_FluidNaquadahReactor.java b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_FluidNaquadahReactor.java index 8de7f135a8..c57cdac772 100644 --- a/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_FluidNaquadahReactor.java +++ b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_FluidNaquadahReactor.java @@ -1,103 +1,103 @@ -/* 1: */ package gregtech.common.tileentities.generators;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Textures;
+package gregtech.common.tileentities.generators;
+
+import gregtech.api.enums.Textures;
import gregtech.api.enums.Textures.BlockIcons;
-/* 4: */ import gregtech.api.interfaces.ITexture;
-/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 6: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 7: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicGenerator;
-/* 8: */ import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicGenerator;
+import gregtech.api.objects.GT_RenderedTexture;
import gregtech.api.util.GT_Recipe;
-/* 9: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 10: */
-/* 11: */ public class GT_MetaTileEntity_FluidNaquadahReactor
-/* 12: */ extends GT_MetaTileEntity_BasicGenerator
-/* 13: */ {
-/* 14: */ public boolean isOutputFacing(byte aSide)
-/* 15: */ {
-/* 16:12 */ return (aSide > 1) && (aSide != getBaseMetaTileEntity().getFrontFacing()) && (aSide != getBaseMetaTileEntity().getBackFacing());
-/* 17: */ }
-/* 18: */
-/* 19: */ public GT_MetaTileEntity_FluidNaquadahReactor(int aID, String aName, String aNameRegional, int aTier)
-/* 20: */ {
-/* 21:15 */ super(aID, aName, aNameRegional, aTier, "Requires Fluid Heavy Naquadah", new ITexture[0]);
-/* 22: */ }
-/* 23: */
-/* 24: */ public GT_MetaTileEntity_FluidNaquadahReactor(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
-/* 25: */ {
-/* 26:19 */ super(aName, aTier, aDescription, aTextures);
-/* 27: */ }
-/* 28: */
-/* 29: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 30: */ {
-/* 31:24 */ return new GT_MetaTileEntity_FluidNaquadahReactor(this.mName, this.mTier, this.mDescription, this.mTextures);
-/* 32: */ }
-/* 33: */
-/* 34: */ public GT_Recipe.GT_Recipe_Map getRecipes()
-/* 35: */ {
-/* 36:29 */ return GT_Recipe.GT_Recipe_Map.sFluidNaquadahReactorFuels;
-/* 37: */ }
-/* 38: */
-/* 39: */ public int getCapacity()
-/* 40: */ {
-/* 41:34 */ return 16000;
-/* 42: */ }
-/* 43: */
-/* 44: */ public int getEfficiency()
-/* 45: */ {
-/* 46:39 */ return 100;
-/* 47: */ }
-/* 48: */
-/* 49: */ public ITexture[] getFront(byte aColor)
-/* 50: */ {
-/* 51:42 */ return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_FRONT) };
-/* 52: */ }
-/* 53: */
-/* 54: */ public ITexture[] getBack(byte aColor)
-/* 55: */ {
-/* 56:43 */ return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_BACK) };
-/* 57: */ }
-/* 58: */
-/* 59: */ public ITexture[] getBottom(byte aColor)
-/* 60: */ {
-/* 61:44 */ return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_BOTTOM) };
-/* 62: */ }
-/* 63: */
-/* 64: */ public ITexture[] getTop(byte aColor)
-/* 65: */ {
-/* 66:45 */ return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_TOP) };
-/* 67: */ }
-/* 68: */
-/* 69: */ public ITexture[] getSides(byte aColor)
-/* 70: */ {
-/* 71:46 */ return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_SIDE) };
-/* 72: */ }
-/* 73: */
-/* 74: */ public ITexture[] getFrontActive(byte aColor)
-/* 75: */ {
-/* 76:47 */ return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_FRONT_ACTIVE) };
-/* 77: */ }
-/* 78: */
-/* 79: */ public ITexture[] getBackActive(byte aColor)
-/* 80: */ {
-/* 81:48 */ return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_BACK_ACTIVE) };
-/* 82: */ }
-/* 83: */
-/* 84: */ public ITexture[] getBottomActive(byte aColor)
-/* 85: */ {
-/* 86:49 */ return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_BOTTOM_ACTIVE) };
-/* 87: */ }
-/* 88: */
-/* 89: */ public ITexture[] getTopActive(byte aColor)
-/* 90: */ {
-/* 91:50 */ return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_TOP_ACTIVE) };
-/* 92: */ }
-/* 93: */
-/* 94: */ public ITexture[] getSidesActive(byte aColor)
-/* 95: */ {
-/* 96:51 */ return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_SIDE_ACTIVE) };
-/* 97: */ }
-/* 98: */ }
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+
+public class GT_MetaTileEntity_FluidNaquadahReactor
+ extends GT_MetaTileEntity_BasicGenerator
+{
+ public boolean isOutputFacing(byte aSide)
+ {
+ return (aSide > 1) && (aSide != getBaseMetaTileEntity().getFrontFacing()) && (aSide != getBaseMetaTileEntity().getBackFacing());
+ }
+
+ public GT_MetaTileEntity_FluidNaquadahReactor(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, "Requires Fluid Heavy Naquadah", new ITexture[0]);
+ }
+
+ public GT_MetaTileEntity_FluidNaquadahReactor(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aTier, aDescription, aTextures);
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_FluidNaquadahReactor(this.mName, this.mTier, this.mDescription, this.mTextures);
+ }
+
+ public GT_Recipe.GT_Recipe_Map getRecipes()
+ {
+ return GT_Recipe.GT_Recipe_Map.sFluidNaquadahReactorFuels;
+ }
+
+ public int getCapacity()
+ {
+ return 16000;
+ }
+
+ public int getEfficiency()
+ {
+ return 100;
+ }
+
+ public ITexture[] getFront(byte aColor)
+ {
+ return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_FRONT) };
+ }
+
+ public ITexture[] getBack(byte aColor)
+ {
+ return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_BACK) };
+ }
+
+ public ITexture[] getBottom(byte aColor)
+ {
+ return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_BOTTOM) };
+ }
+
+ public ITexture[] getTop(byte aColor)
+ {
+ return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_TOP) };
+ }
+
+ public ITexture[] getSides(byte aColor)
+ {
+ return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_SIDE) };
+ }
+
+ public ITexture[] getFrontActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_FRONT_ACTIVE) };
+ }
+
+ public ITexture[] getBackActive(byte aColor)
+ {
+ return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_BACK_ACTIVE) };
+ }
+
+ public ITexture[] getBottomActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_BOTTOM_ACTIVE) };
+ }
+
+ public ITexture[] getTopActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_TOP_ACTIVE) };
+ }
+
+ public ITexture[] getSidesActive(byte aColor)
+ {
+ return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_FLUID_SIDE_ACTIVE) };
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_GasTurbine.java b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_GasTurbine.java index 1d7cc3a846..f6c39bbea5 100644 --- a/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_GasTurbine.java +++ b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_GasTurbine.java @@ -1,115 +1,115 @@ -/* 1: */ package gregtech.common.tileentities.generators;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.generators;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.ConfigCategories;
import gregtech.api.enums.Textures;
import gregtech.api.enums.Textures.BlockIcons;
-/* 4: */ import gregtech.api.interfaces.ITexture;
-/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 6: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 7: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicGenerator;
-/* 8: */ import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicGenerator;
+import gregtech.api.objects.GT_RenderedTexture;
import gregtech.api.util.GT_Recipe;
-/* 9: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 10: */
-/* 11: */ public class GT_MetaTileEntity_GasTurbine
-/* 12: */ extends GT_MetaTileEntity_BasicGenerator
-/* 13: */ {
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+
+public class GT_MetaTileEntity_GasTurbine
+ extends GT_MetaTileEntity_BasicGenerator
+{
public int mEfficiency;
-/* 14: */ public boolean isOutputFacing(byte aSide)
-/* 15: */ {
-/* 16:12 */ return aSide == getBaseMetaTileEntity().getFrontFacing();
-/* 17: */ }
-/* 18: */
-/* 19: */ public GT_MetaTileEntity_GasTurbine(int aID, String aName, String aNameRegional, int aTier)
-/* 20: */ {
-/* 21:15 */ super(aID, aName, aNameRegional, aTier, "Requires flammable Gasses", new ITexture[0]);
+ public boolean isOutputFacing(byte aSide)
+ {
+ return aSide == getBaseMetaTileEntity().getFrontFacing();
+ }
+
+ public GT_MetaTileEntity_GasTurbine(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, "Requires flammable Gasses", new ITexture[0]);
onConfigLoad();
-/* 22: */ }
-/* 23: */
-/* 24: */ public GT_MetaTileEntity_GasTurbine(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
-/* 25: */ {
-/* 26:19 */ super(aName, aTier, aDescription, aTextures);
+ }
+
+ public GT_MetaTileEntity_GasTurbine(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aTier, aDescription, aTextures);
onConfigLoad();
-/* 27: */ }
-/* 28: */
-/* 29: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 30: */ {
-/* 31:24 */ return new GT_MetaTileEntity_GasTurbine(this.mName, this.mTier, this.mDescription, this.mTextures);
-/* 32: */ }
-/* 33: */
-/* 34: */ public GT_Recipe.GT_Recipe_Map getRecipes()
-/* 35: */ {
-/* 36:29 */ return GT_Recipe.GT_Recipe_Map.sTurbineFuels;
-/* 37: */ }
-/* 38: */
-/* 39: */ public int getCapacity()
-/* 40: */ {
-/* 41:34 */ return 16000;
-/* 42: */ }
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_GasTurbine(this.mName, this.mTier, this.mDescription, this.mTextures);
+ }
+
+ public GT_Recipe.GT_Recipe_Map getRecipes()
+ {
+ return GT_Recipe.GT_Recipe_Map.sTurbineFuels;
+ }
+
+ public int getCapacity()
+ {
+ return 16000;
+ }
public void onConfigLoad()
-/* 39: */ {
+ {
this.mEfficiency =GregTech_API.sMachineFile.get(ConfigCategories.machineconfig, "GasTurbine.efficiency.tier."+this.mTier, (100 - this.mTier * 10));
}
-/* 43: */
-/* 44: */ public int getEfficiency()
-/* 45: */ {
-/* 46:39 */ return this.mEfficiency;
-/* 47: */ }
-/* 48: */
-/* 49: */ public ITexture[] getFront(byte aColor)
-/* 50: */ {
-/* 51:42 */ return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_FRONT), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] };
-/* 52: */ }
-/* 53: */
-/* 54: */ public ITexture[] getBack(byte aColor)
-/* 55: */ {
-/* 56:43 */ return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_BACK) };
-/* 57: */ }
-/* 58: */
-/* 59: */ public ITexture[] getBottom(byte aColor)
-/* 60: */ {
-/* 61:44 */ return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_BOTTOM) };
-/* 62: */ }
-/* 63: */
-/* 64: */ public ITexture[] getTop(byte aColor)
-/* 65: */ {
-/* 66:45 */ return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_TOP) };
-/* 67: */ }
-/* 68: */
-/* 69: */ public ITexture[] getSides(byte aColor)
-/* 70: */ {
-/* 71:46 */ return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_SIDE) };
-/* 72: */ }
-/* 73: */
-/* 74: */ public ITexture[] getFrontActive(byte aColor)
-/* 75: */ {
-/* 76:47 */ return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_FRONT_ACTIVE), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] };
-/* 77: */ }
-/* 78: */
-/* 79: */ public ITexture[] getBackActive(byte aColor)
-/* 80: */ {
-/* 81:48 */ return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_BACK_ACTIVE) };
-/* 82: */ }
-/* 83: */
-/* 84: */ public ITexture[] getBottomActive(byte aColor)
-/* 85: */ {
-/* 86:49 */ return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_BOTTOM_ACTIVE) };
-/* 87: */ }
-/* 88: */
-/* 89: */ public ITexture[] getTopActive(byte aColor)
-/* 90: */ {
-/* 91:50 */ return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_TOP_ACTIVE) };
-/* 92: */ }
-/* 93: */
-/* 94: */ public ITexture[] getSidesActive(byte aColor)
-/* 95: */ {
-/* 96:51 */ return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_SIDE_ACTIVE) };
-/* 97: */ }
-/* 98: */ }
+
+ public int getEfficiency()
+ {
+ return this.mEfficiency;
+ }
+
+ public ITexture[] getFront(byte aColor)
+ {
+ return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_FRONT), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] };
+ }
+
+ public ITexture[] getBack(byte aColor)
+ {
+ return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_BACK) };
+ }
+
+ public ITexture[] getBottom(byte aColor)
+ {
+ return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_BOTTOM) };
+ }
+
+ public ITexture[] getTop(byte aColor)
+ {
+ return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_TOP) };
+ }
+
+ public ITexture[] getSides(byte aColor)
+ {
+ return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_SIDE) };
+ }
+
+ public ITexture[] getFrontActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_FRONT_ACTIVE), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] };
+ }
+
+ public ITexture[] getBackActive(byte aColor)
+ {
+ return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_BACK_ACTIVE) };
+ }
+
+ public ITexture[] getBottomActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_BOTTOM_ACTIVE) };
+ }
+
+ public ITexture[] getTopActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_TOP_ACTIVE) };
+ }
+
+ public ITexture[] getSidesActive(byte aColor)
+ {
+ return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.GAS_TURBINE_SIDE_ACTIVE) };
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_MagicEnergyConverter.java b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_MagicEnergyConverter.java index 01c2912c51..06935e6137 100644 --- a/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_MagicEnergyConverter.java +++ b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_MagicEnergyConverter.java @@ -1,112 +1,112 @@ package gregtech.common.tileentities.generators; -/* 3: */ import gregtech.api.GregTech_API; +import gregtech.api.GregTech_API; import gregtech.api.enums.ConfigCategories; import gregtech.api.enums.Textures; import gregtech.api.enums.Textures.BlockIcons; -/* 4: */ import gregtech.api.interfaces.ITexture; -/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity; -/* 6: */ import gregtech.api.metatileentity.MetaTileEntity; -/* 7: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicGenerator; -/* 8: */ import gregtech.api.objects.GT_RenderedTexture; +import gregtech.api.interfaces.ITexture; +import gregtech.api.interfaces.tileentity.IGregTechTileEntity; +import gregtech.api.metatileentity.MetaTileEntity; +import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicGenerator; +import gregtech.api.objects.GT_RenderedTexture; import gregtech.api.util.GT_Recipe; -/* 9: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map; -/* 10: */ -/* 11: */ public class GT_MetaTileEntity_MagicEnergyConverter -/* 12: */ extends GT_MetaTileEntity_BasicGenerator -/* 13: */ { +import gregtech.api.util.GT_Recipe.GT_Recipe_Map; + +public class GT_MetaTileEntity_MagicEnergyConverter + extends GT_MetaTileEntity_BasicGenerator +{ public int mEfficiency; -/* 14: */ public boolean isOutputFacing(byte aSide) -/* 15: */ { -/* 16:12 */ return aSide == getBaseMetaTileEntity().getFrontFacing(); -/* 17: */ } -/* 18: */ -/* 19: */ public GT_MetaTileEntity_MagicEnergyConverter(int aID, String aName, String aNameRegional, int aTier) -/* 20: */ { -/* 21:15 */ super(aID, aName, aNameRegional, aTier, "Put your strange stuff in here", new ITexture[0]); + public boolean isOutputFacing(byte aSide) + { + return aSide == getBaseMetaTileEntity().getFrontFacing(); + } + + public GT_MetaTileEntity_MagicEnergyConverter(int aID, String aName, String aNameRegional, int aTier) + { + super(aID, aName, aNameRegional, aTier, "Put your strange stuff in here", new ITexture[0]); onConfigLoad(); -/* 22: */ } -/* 23: */ -/* 24: */ public GT_MetaTileEntity_MagicEnergyConverter(String aName, int aTier, String aDescription, ITexture[][][] aTextures) -/* 25: */ { -/* 26:19 */ super(aName, aTier, aDescription, aTextures); + } + + public GT_MetaTileEntity_MagicEnergyConverter(String aName, int aTier, String aDescription, ITexture[][][] aTextures) + { + super(aName, aTier, aDescription, aTextures); onConfigLoad(); -/* 27: */ } -/* 28: */ -/* 29: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) -/* 30: */ { -/* 31:24 */ return new GT_MetaTileEntity_MagicEnergyConverter(this.mName, this.mTier, this.mDescription, this.mTextures); -/* 32: */ } -/* 33: */ -/* 34: */ public GT_Recipe.GT_Recipe_Map getRecipes() -/* 35: */ { -/* 36:29 */ return GT_Recipe.GT_Recipe_Map.sMagicFuels; -/* 37: */ } -/* 38: */ -/* 39: */ public int getCapacity() -/* 40: */ { -/* 41:34 */ return 16000; -/* 42: */ } + } + + public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) + { + return new GT_MetaTileEntity_MagicEnergyConverter(this.mName, this.mTier, this.mDescription, this.mTextures); + } + + public GT_Recipe.GT_Recipe_Map getRecipes() + { + return GT_Recipe.GT_Recipe_Map.sMagicFuels; + } + + public int getCapacity() + { + return 16000; + } public void onConfigLoad() -/* 39: */ { + { this.mEfficiency =GregTech_API.sMachineFile.get(ConfigCategories.machineconfig, "MagicEnergyConverter.efficiency.tier."+this.mTier, 100-this.mTier*10); } -/* 43: */ -/* 44: */ public int getEfficiency() -/* 45: */ { -/* 46:39 */ return this.mEfficiency; -/* 47: */ } -/* 48: */ -/* 49: */ public ITexture[] getFront(byte aColor) -/* 50: */ { -/* 51:42 */ return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] }; -/* 52: */ } -/* 53: */ -/* 54: */ public ITexture[] getBack(byte aColor) -/* 55: */ { -/* 56:43 */ return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_FRONT) }; -/* 57: */ } -/* 58: */ -/* 59: */ public ITexture[] getBottom(byte aColor) -/* 60: */ { -/* 61:44 */ return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC) }; -/* 62: */ } -/* 63: */ -/* 64: */ public ITexture[] getTop(byte aColor) -/* 65: */ { -/* 66:45 */ return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC) }; -/* 67: */ } -/* 68: */ -/* 69: */ public ITexture[] getSides(byte aColor) -/* 70: */ { -/* 71:46 */ return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC) }; -/* 72: */ } -/* 73: */ -/* 74: */ public ITexture[] getFrontActive(byte aColor) -/* 75: */ { -/* 76:47 */ return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_ACTIVE), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] }; -/* 77: */ } -/* 78: */ -/* 79: */ public ITexture[] getBackActive(byte aColor) -/* 80: */ { -/* 81:48 */ return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_FRONT_ACTIVE) }; -/* 82: */ } -/* 83: */ -/* 84: */ public ITexture[] getBottomActive(byte aColor) -/* 85: */ { -/* 86:49 */ return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_ACTIVE) }; -/* 87: */ } -/* 88: */ -/* 89: */ public ITexture[] getTopActive(byte aColor) -/* 90: */ { -/* 91:50 */ return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_ACTIVE) }; -/* 92: */ } -/* 93: */ -/* 94: */ public ITexture[] getSidesActive(byte aColor) -/* 95: */ { -/* 96:51 */ return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_ACTIVE) }; -/* 97: */ } -/* 98: */ }
\ No newline at end of file + + public int getEfficiency() + { + return this.mEfficiency; + } + + public ITexture[] getFront(byte aColor) + { + return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] }; + } + + public ITexture[] getBack(byte aColor) + { + return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_FRONT) }; + } + + public ITexture[] getBottom(byte aColor) + { + return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC) }; + } + + public ITexture[] getTop(byte aColor) + { + return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC) }; + } + + public ITexture[] getSides(byte aColor) + { + return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC) }; + } + + public ITexture[] getFrontActive(byte aColor) + { + return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_ACTIVE), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] }; + } + + public ITexture[] getBackActive(byte aColor) + { + return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_FRONT_ACTIVE) }; + } + + public ITexture[] getBottomActive(byte aColor) + { + return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_ACTIVE) }; + } + + public ITexture[] getTopActive(byte aColor) + { + return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_ACTIVE) }; + } + + public ITexture[] getSidesActive(byte aColor) + { + return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_ACTIVE) }; + } +}
\ No newline at end of file diff --git a/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_MagicalEnergyAbsorber.java b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_MagicalEnergyAbsorber.java index 7e724d3d9e..bb19069cf5 100644 --- a/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_MagicalEnergyAbsorber.java +++ b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_MagicalEnergyAbsorber.java @@ -1,6 +1,6 @@ package gregtech.common.tileentities.generators; -/* 3: */ import java.util.ArrayList; +import java.util.ArrayList; import thaumcraft.api.aspects.Aspect; import thaumcraft.api.visnet.VisNetHandler; @@ -21,18 +21,18 @@ import gregtech.api.GregTech_API; import gregtech.api.enums.ConfigCategories; import gregtech.api.enums.Textures; import gregtech.api.enums.Textures.BlockIcons; -/* 4: */ import gregtech.api.interfaces.ITexture; -/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity; -/* 6: */ import gregtech.api.metatileentity.MetaTileEntity; -/* 7: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicGenerator; -/* 8: */ import gregtech.api.objects.GT_RenderedTexture; +import gregtech.api.interfaces.ITexture; +import gregtech.api.interfaces.tileentity.IGregTechTileEntity; +import gregtech.api.metatileentity.MetaTileEntity; +import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicGenerator; +import gregtech.api.objects.GT_RenderedTexture; import gregtech.api.util.GT_Recipe; import gregtech.api.util.GT_Utility; -/* 9: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map; -/* 10: */ -/* 11: */ public class GT_MetaTileEntity_MagicalEnergyAbsorber -/* 12: */ extends GT_MetaTileEntity_BasicGenerator -/* 13: */ { +import gregtech.api.util.GT_Recipe.GT_Recipe_Map; + +public class GT_MetaTileEntity_MagicalEnergyAbsorber + extends GT_MetaTileEntity_BasicGenerator +{ public int mEfficiency; public static boolean sAllowMultipleEggs = true; @@ -44,40 +44,40 @@ import gregtech.api.util.GT_Utility; public static int sDragonEggEnergyPerTick = 128; public static boolean isThaumcraftLoaded; -/* 14: */ public boolean isOutputFacing(byte aSide) -/* 15: */ { -/* 16:12 */ return aSide == getBaseMetaTileEntity().getFrontFacing(); -/* 17: */ } -/* 18: */ -/* 19: */ public GT_MetaTileEntity_MagicalEnergyAbsorber(int aID, String aName, String aNameRegional, int aTier) -/* 20: */ { -/* 21:15 */ super(aID, aName, aNameRegional, aTier, "Feasts on magic close to it", new ITexture[0]); + public boolean isOutputFacing(byte aSide) + { + return aSide == getBaseMetaTileEntity().getFrontFacing(); + } + + public GT_MetaTileEntity_MagicalEnergyAbsorber(int aID, String aName, String aNameRegional, int aTier) + { + super(aID, aName, aNameRegional, aTier, "Feasts on magic close to it", new ITexture[0]); onConfigLoad(); -/* 22: */ } -/* 23: */ -/* 24: */ public GT_MetaTileEntity_MagicalEnergyAbsorber(String aName, int aTier, String aDescription, ITexture[][][] aTextures) -/* 25: */ { -/* 26:19 */ super(aName, aTier, aDescription, aTextures); + } + + public GT_MetaTileEntity_MagicalEnergyAbsorber(String aName, int aTier, String aDescription, ITexture[][][] aTextures) + { + super(aName, aTier, aDescription, aTextures); onConfigLoad(); -/* 27: */ } -/* 28: */ -/* 29: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) -/* 30: */ { -/* 31:24 */ return new GT_MetaTileEntity_MagicalEnergyAbsorber(this.mName, this.mTier, this.mDescription, this.mTextures); -/* 32: */ } -/* 33: */ -/* 34: */ public GT_Recipe.GT_Recipe_Map getRecipes() -/* 35: */ { -/* 36:29 */ return GT_Recipe.GT_Recipe_Map.sMagicFuels; -/* 37: */ } -/* 38: */ -/* 39: */ public int getCapacity() -/* 40: */ { -/* 41:34 */ return 16000; -/* 42: */ } + } + + public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) + { + return new GT_MetaTileEntity_MagicalEnergyAbsorber(this.mName, this.mTier, this.mDescription, this.mTextures); + } + + public GT_Recipe.GT_Recipe_Map getRecipes() + { + return GT_Recipe.GT_Recipe_Map.sMagicFuels; + } + + public int getCapacity() + { + return 16000; + } public void onConfigLoad() -/* 39: */ { + { this.mEfficiency =GregTech_API.sMachineFile.get(ConfigCategories.machineconfig, "MagicEnergyAbsorber.efficiency.tier."+this.mTier, 100-this.mTier*10); this.sAllowMultipleEggs = GregTech_API.sMachineFile.get(ConfigCategories.machineconfig, "MagicEnergyAbsorber.AllowMultipleEggs", false); this.sEnergyPerEnderCrystal = GregTech_API.sMachineFile.get(ConfigCategories.machineconfig, "MagicEnergyAbsorber.EnergyPerTick.EnderCrystal", 32); @@ -221,59 +221,59 @@ import gregtech.api.util.GT_Utility; if(above==null||Blocks.air==above){return false;} return Blocks.dragon_egg == above || above.getUnlocalizedName().equals("tile.dragonEgg"); } -/* 43: */ -/* 44: */ public int getEfficiency() -/* 45: */ { -/* 46:39 */ return this.mEfficiency; -/* 47: */ } -/* 48: */ -/* 49: */ public ITexture[] getFront(byte aColor) -/* 50: */ { -/* 51:42 */ return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] }; -/* 52: */ } -/* 53: */ -/* 54: */ public ITexture[] getBack(byte aColor) -/* 55: */ { -/* 56:43 */ return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_FRONT) }; -/* 57: */ } -/* 58: */ -/* 59: */ public ITexture[] getBottom(byte aColor) -/* 60: */ { -/* 61:44 */ return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC) }; -/* 62: */ } -/* 63: */ -/* 64: */ public ITexture[] getTop(byte aColor) -/* 65: */ { -/* 66:45 */ return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_DRAGONEGG) }; -/* 67: */ } -/* 68: */ -/* 69: */ public ITexture[] getSides(byte aColor) -/* 70: */ { -/* 71:46 */ return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC) }; -/* 72: */ } -/* 73: */ -/* 74: */ public ITexture[] getFrontActive(byte aColor) -/* 75: */ { -/* 76:47 */ return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_ACTIVE), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] }; -/* 77: */ } -/* 78: */ -/* 79: */ public ITexture[] getBackActive(byte aColor) -/* 80: */ { -/* 81:48 */ return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_FRONT_ACTIVE) }; -/* 82: */ } -/* 83: */ -/* 84: */ public ITexture[] getBottomActive(byte aColor) -/* 85: */ { -/* 86:49 */ return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_ACTIVE) }; -/* 87: */ } -/* 88: */ -/* 89: */ public ITexture[] getTopActive(byte aColor) -/* 90: */ { -/* 91:50 */ return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_DRAGONEGG) }; -/* 92: */ } -/* 93: */ -/* 94: */ public ITexture[] getSidesActive(byte aColor) -/* 95: */ { -/* 96:51 */ return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_ACTIVE) }; -/* 97: */ } -/* 98: */ }
\ No newline at end of file + + public int getEfficiency() + { + return this.mEfficiency; + } + + public ITexture[] getFront(byte aColor) + { + return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] }; + } + + public ITexture[] getBack(byte aColor) + { + return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_FRONT) }; + } + + public ITexture[] getBottom(byte aColor) + { + return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC) }; + } + + public ITexture[] getTop(byte aColor) + { + return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_DRAGONEGG) }; + } + + public ITexture[] getSides(byte aColor) + { + return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC) }; + } + + public ITexture[] getFrontActive(byte aColor) + { + return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_ACTIVE), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] }; + } + + public ITexture[] getBackActive(byte aColor) + { + return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_FRONT_ACTIVE) }; + } + + public ITexture[] getBottomActive(byte aColor) + { + return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_ACTIVE) }; + } + + public ITexture[] getTopActive(byte aColor) + { + return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_DRAGONEGG) }; + } + + public ITexture[] getSidesActive(byte aColor) + { + return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_MAGIC_ACTIVE) }; + } +}
\ No newline at end of file diff --git a/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_PlasmaGenerator.java b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_PlasmaGenerator.java index 26aeea5964..c547432901 100644 --- a/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_PlasmaGenerator.java +++ b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_PlasmaGenerator.java @@ -1,112 +1,112 @@ package gregtech.common.tileentities.generators; -/* 3: */ import gregtech.api.GregTech_API; +import gregtech.api.GregTech_API; import gregtech.api.enums.ConfigCategories; import gregtech.api.enums.Textures; import gregtech.api.enums.Textures.BlockIcons; -/* 4: */ import gregtech.api.interfaces.ITexture; -/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity; -/* 6: */ import gregtech.api.metatileentity.MetaTileEntity; -/* 7: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicGenerator; -/* 8: */ import gregtech.api.objects.GT_RenderedTexture; +import gregtech.api.interfaces.ITexture; +import gregtech.api.interfaces.tileentity.IGregTechTileEntity; +import gregtech.api.metatileentity.MetaTileEntity; +import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicGenerator; +import gregtech.api.objects.GT_RenderedTexture; import gregtech.api.util.GT_Recipe; -/* 9: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map; -/* 10: */ -/* 11: */ public class GT_MetaTileEntity_PlasmaGenerator -/* 12: */ extends GT_MetaTileEntity_BasicGenerator -/* 13: */ { +import gregtech.api.util.GT_Recipe.GT_Recipe_Map; + +public class GT_MetaTileEntity_PlasmaGenerator + extends GT_MetaTileEntity_BasicGenerator +{ public int mEfficiency; -/* 14: */ public boolean isOutputFacing(byte aSide) -/* 15: */ { -/* 16:12 */ return aSide == getBaseMetaTileEntity().getFrontFacing(); -/* 17: */ } -/* 18: */ -/* 19: */ public GT_MetaTileEntity_PlasmaGenerator(int aID, String aName, String aNameRegional, int aTier) -/* 20: */ { -/* 21:15 */ super(aID, aName, aNameRegional, aTier, "Plasma into energy", new ITexture[0]); + public boolean isOutputFacing(byte aSide) + { + return aSide == getBaseMetaTileEntity().getFrontFacing(); + } + + public GT_MetaTileEntity_PlasmaGenerator(int aID, String aName, String aNameRegional, int aTier) + { + super(aID, aName, aNameRegional, aTier, "Plasma into energy", new ITexture[0]); onConfigLoad(); -/* 22: */ } -/* 23: */ -/* 24: */ public GT_MetaTileEntity_PlasmaGenerator(String aName, int aTier, String aDescription, ITexture[][][] aTextures) -/* 25: */ { -/* 26:19 */ super(aName, aTier, aDescription, aTextures); + } + + public GT_MetaTileEntity_PlasmaGenerator(String aName, int aTier, String aDescription, ITexture[][][] aTextures) + { + super(aName, aTier, aDescription, aTextures); onConfigLoad(); -/* 27: */ } -/* 28: */ -/* 29: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) -/* 30: */ { -/* 31:24 */ return new GT_MetaTileEntity_PlasmaGenerator(this.mName, this.mTier, this.mDescription, this.mTextures); -/* 32: */ } -/* 33: */ -/* 34: */ public GT_Recipe.GT_Recipe_Map getRecipes() -/* 35: */ { -/* 36:29 */ return GT_Recipe.GT_Recipe_Map.sPlasmaFuels; -/* 37: */ } -/* 38: */ -/* 39: */ public int getCapacity() -/* 40: */ { -/* 41:34 */ return 16000; -/* 42: */ } + } + + public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) + { + return new GT_MetaTileEntity_PlasmaGenerator(this.mName, this.mTier, this.mDescription, this.mTextures); + } + + public GT_Recipe.GT_Recipe_Map getRecipes() + { + return GT_Recipe.GT_Recipe_Map.sPlasmaFuels; + } + + public int getCapacity() + { + return 16000; + } public void onConfigLoad() -/* 39: */ { + { this.mEfficiency =GregTech_API.sMachineFile.get(ConfigCategories.machineconfig, "PlasmaGenerator.efficiency.tier."+this.mTier, (10 + (this.mTier * 10))); } -/* 43: */ -/* 44: */ public int getEfficiency() -/* 45: */ { -/* 46:39 */ return this.mEfficiency; -/* 47: */ } -/* 48: */ -/* 49: */ public ITexture[] getFront(byte aColor) -/* 50: */ { -/* 51:42 */ return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] }; -/* 52: */ } -/* 53: */ -/* 54: */ public ITexture[] getBack(byte aColor) -/* 55: */ { -/* 56:43 */ return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS) }; -/* 57: */ } -/* 58: */ -/* 59: */ public ITexture[] getBottom(byte aColor) -/* 60: */ { -/* 61:44 */ return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS) }; -/* 62: */ } -/* 63: */ -/* 64: */ public ITexture[] getTop(byte aColor) -/* 65: */ { -/* 66:45 */ return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS) }; -/* 67: */ } -/* 68: */ -/* 69: */ public ITexture[] getSides(byte aColor) -/* 70: */ { -/* 71:46 */ return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS) }; -/* 72: */ } -/* 73: */ -/* 74: */ public ITexture[] getFrontActive(byte aColor) -/* 75: */ { -/* 76:47 */ return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] }; -/* 77: */ } -/* 78: */ -/* 79: */ public ITexture[] getBackActive(byte aColor) -/* 80: */ { -/* 81:48 */ return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW) }; -/* 82: */ } -/* 83: */ -/* 84: */ public ITexture[] getBottomActive(byte aColor) -/* 85: */ { -/* 86:49 */ return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW) }; -/* 87: */ } -/* 88: */ -/* 89: */ public ITexture[] getTopActive(byte aColor) -/* 90: */ { -/* 91:50 */ return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW) }; -/* 92: */ } -/* 93: */ -/* 94: */ public ITexture[] getSidesActive(byte aColor) -/* 95: */ { -/* 96:51 */ return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW) }; -/* 97: */ } -/* 98: */ }
\ No newline at end of file + + public int getEfficiency() + { + return this.mEfficiency; + } + + public ITexture[] getFront(byte aColor) + { + return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] }; + } + + public ITexture[] getBack(byte aColor) + { + return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS) }; + } + + public ITexture[] getBottom(byte aColor) + { + return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS) }; + } + + public ITexture[] getTop(byte aColor) + { + return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS) }; + } + + public ITexture[] getSides(byte aColor) + { + return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS) }; + } + + public ITexture[] getFrontActive(byte aColor) + { + return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] }; + } + + public ITexture[] getBackActive(byte aColor) + { + return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW) }; + } + + public ITexture[] getBottomActive(byte aColor) + { + return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW) }; + } + + public ITexture[] getTopActive(byte aColor) + { + return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW) }; + } + + public ITexture[] getSidesActive(byte aColor) + { + return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW) }; + } +}
\ No newline at end of file diff --git a/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_SolidNaquadahReactor.java b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_SolidNaquadahReactor.java index 59177635a3..4e85dbfe92 100644 --- a/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_SolidNaquadahReactor.java +++ b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_SolidNaquadahReactor.java @@ -1,103 +1,103 @@ -/* 1: */ package gregtech.common.tileentities.generators;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Textures;
+package gregtech.common.tileentities.generators;
+
+import gregtech.api.enums.Textures;
import gregtech.api.enums.Textures.BlockIcons;
-/* 4: */ import gregtech.api.interfaces.ITexture;
-/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 6: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 7: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicGenerator;
-/* 8: */ import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicGenerator;
+import gregtech.api.objects.GT_RenderedTexture;
import gregtech.api.util.GT_Recipe;
-/* 9: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 10: */
-/* 11: */ public class GT_MetaTileEntity_SolidNaquadahReactor
-/* 12: */ extends GT_MetaTileEntity_BasicGenerator
-/* 13: */ {
-/* 14: */ public boolean isOutputFacing(byte aSide)
-/* 15: */ {
-/* 16:12 */ return (aSide > 1) && (aSide != getBaseMetaTileEntity().getFrontFacing()) && (aSide != getBaseMetaTileEntity().getBackFacing());
-/* 17: */ }
-/* 18: */
-/* 19: */ public GT_MetaTileEntity_SolidNaquadahReactor(int aID, String aName, String aNameRegional, int aTier)
-/* 20: */ {
-/* 21:15 */ super(aID, aName, aNameRegional, aTier, "Requires Enriched Naquadah Bolts", new ITexture[0]);
-/* 22: */ }
-/* 23: */
-/* 24: */ public GT_MetaTileEntity_SolidNaquadahReactor(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
-/* 25: */ {
-/* 26:19 */ super(aName, aTier, aDescription, aTextures);
-/* 27: */ }
-/* 28: */
-/* 29: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 30: */ {
-/* 31:24 */ return new GT_MetaTileEntity_SolidNaquadahReactor(this.mName, this.mTier, this.mDescription, this.mTextures);
-/* 32: */ }
-/* 33: */
-/* 34: */ public GT_Recipe.GT_Recipe_Map getRecipes()
-/* 35: */ {
-/* 36:29 */ return GT_Recipe.GT_Recipe_Map.sSmallNaquadahReactorFuels;
-/* 37: */ }
-/* 38: */
-/* 39: */ public int getCapacity()
-/* 40: */ {
-/* 41:34 */ return 0;
-/* 42: */ }
-/* 43: */
-/* 44: */ public int getEfficiency()
-/* 45: */ {
-/* 46:39 */ return 80;
-/* 47: */ }
-/* 48: */
-/* 49: */ public ITexture[] getFront(byte aColor)
-/* 50: */ {
-/* 51:42 */ return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_FRONT) };
-/* 52: */ }
-/* 53: */
-/* 54: */ public ITexture[] getBack(byte aColor)
-/* 55: */ {
-/* 56:43 */ return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_BACK) };
-/* 57: */ }
-/* 58: */
-/* 59: */ public ITexture[] getBottom(byte aColor)
-/* 60: */ {
-/* 61:44 */ return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_BOTTOM) };
-/* 62: */ }
-/* 63: */
-/* 64: */ public ITexture[] getTop(byte aColor)
-/* 65: */ {
-/* 66:45 */ return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_TOP) };
-/* 67: */ }
-/* 68: */
-/* 69: */ public ITexture[] getSides(byte aColor)
-/* 70: */ {
-/* 71:46 */ return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_SIDE) };
-/* 72: */ }
-/* 73: */
-/* 74: */ public ITexture[] getFrontActive(byte aColor)
-/* 75: */ {
-/* 76:47 */ return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_FRONT_ACTIVE) };
-/* 77: */ }
-/* 78: */
-/* 79: */ public ITexture[] getBackActive(byte aColor)
-/* 80: */ {
-/* 81:48 */ return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_BACK_ACTIVE) };
-/* 82: */ }
-/* 83: */
-/* 84: */ public ITexture[] getBottomActive(byte aColor)
-/* 85: */ {
-/* 86:49 */ return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_BOTTOM_ACTIVE) };
-/* 87: */ }
-/* 88: */
-/* 89: */ public ITexture[] getTopActive(byte aColor)
-/* 90: */ {
-/* 91:50 */ return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_TOP_ACTIVE) };
-/* 92: */ }
-/* 93: */
-/* 94: */ public ITexture[] getSidesActive(byte aColor)
-/* 95: */ {
-/* 96:51 */ return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_SIDE_ACTIVE) };
-/* 97: */ }
-/* 98: */ }
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+
+public class GT_MetaTileEntity_SolidNaquadahReactor
+ extends GT_MetaTileEntity_BasicGenerator
+{
+ public boolean isOutputFacing(byte aSide)
+ {
+ return (aSide > 1) && (aSide != getBaseMetaTileEntity().getFrontFacing()) && (aSide != getBaseMetaTileEntity().getBackFacing());
+ }
+
+ public GT_MetaTileEntity_SolidNaquadahReactor(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, "Requires Enriched Naquadah Bolts", new ITexture[0]);
+ }
+
+ public GT_MetaTileEntity_SolidNaquadahReactor(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aTier, aDescription, aTextures);
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_SolidNaquadahReactor(this.mName, this.mTier, this.mDescription, this.mTextures);
+ }
+
+ public GT_Recipe.GT_Recipe_Map getRecipes()
+ {
+ return GT_Recipe.GT_Recipe_Map.sSmallNaquadahReactorFuels;
+ }
+
+ public int getCapacity()
+ {
+ return 0;
+ }
+
+ public int getEfficiency()
+ {
+ return 80;
+ }
+
+ public ITexture[] getFront(byte aColor)
+ {
+ return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_FRONT) };
+ }
+
+ public ITexture[] getBack(byte aColor)
+ {
+ return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_BACK) };
+ }
+
+ public ITexture[] getBottom(byte aColor)
+ {
+ return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_BOTTOM) };
+ }
+
+ public ITexture[] getTop(byte aColor)
+ {
+ return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_TOP) };
+ }
+
+ public ITexture[] getSides(byte aColor)
+ {
+ return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_SIDE) };
+ }
+
+ public ITexture[] getFrontActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_FRONT_ACTIVE) };
+ }
+
+ public ITexture[] getBackActive(byte aColor)
+ {
+ return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_BACK_ACTIVE) };
+ }
+
+ public ITexture[] getBottomActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_BOTTOM_ACTIVE) };
+ }
+
+ public ITexture[] getTopActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_TOP_ACTIVE) };
+ }
+
+ public ITexture[] getSidesActive(byte aColor)
+ {
+ return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.NAQUADAH_REACTOR_SOLID_SIDE_ACTIVE) };
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_SteamTurbine.java b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_SteamTurbine.java index 9d3bd0f837..9da9f6b27e 100644 --- a/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_SteamTurbine.java +++ b/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_SteamTurbine.java @@ -1,126 +1,126 @@ -/* 1: */ package gregtech.common.tileentities.generators;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.generators;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.ConfigCategories;
import gregtech.api.enums.Textures;
import gregtech.api.enums.Textures.BlockIcons;
-/* 4: */ import gregtech.api.interfaces.ITexture;
-/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 6: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 7: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicGenerator;
-/* 8: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 9: */ import gregtech.api.util.GT_ModHandler;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicGenerator;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_ModHandler;
import gregtech.api.util.GT_Recipe;
-/* 10: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 11: */ import net.minecraftforge.fluids.FluidStack;
-/* 12: */
-/* 13: */ public class GT_MetaTileEntity_SteamTurbine
-/* 14: */ extends GT_MetaTileEntity_BasicGenerator
-/* 15: */ {
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import net.minecraftforge.fluids.FluidStack;
+
+public class GT_MetaTileEntity_SteamTurbine
+ extends GT_MetaTileEntity_BasicGenerator
+{
public int mEfficiency;
-/* 16: */ public boolean isOutputFacing(byte aSide)
-/* 17: */ {
-/* 18:14 */ return aSide == getBaseMetaTileEntity().getFrontFacing();
-/* 19: */ }
-/* 20: */
-/* 21: */ public GT_MetaTileEntity_SteamTurbine(int aID, String aName, String aNameRegional, int aTier)
-/* 22: */ {
-/* 23:17 */ super(aID, aName, aNameRegional, aTier, "Requires Steam to run", new ITexture[0]);
+ public boolean isOutputFacing(byte aSide)
+ {
+ return aSide == getBaseMetaTileEntity().getFrontFacing();
+ }
+
+ public GT_MetaTileEntity_SteamTurbine(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, "Requires Steam to run", new ITexture[0]);
onConfigLoad();
-/* 24: */ }
-/* 25: */
-/* 26: */ public GT_MetaTileEntity_SteamTurbine(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
-/* 27: */ {
-/* 28:21 */ super(aName, aTier, aDescription, aTextures);
+ }
+
+ public GT_MetaTileEntity_SteamTurbine(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aTier, aDescription, aTextures);
onConfigLoad();
-/* 29: */ }
-/* 30: */
-/* 31: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 32: */ {
-/* 33:26 */ return new GT_MetaTileEntity_SteamTurbine(this.mName, this.mTier, this.mDescription, this.mTextures);
-/* 34: */ }
-/* 35: */
-/* 36: */ public GT_Recipe.GT_Recipe_Map getRecipes()
-/* 37: */ {
-/* 38:31 */ return null;
-/* 39: */ }
-/* 40: */
-/* 41: */ public int getCapacity()
-/* 42: */ {
-/* 43:36 */ return 24000 * this.mTier;
-/* 44: */ }
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_SteamTurbine(this.mName, this.mTier, this.mDescription, this.mTextures);
+ }
+
+ public GT_Recipe.GT_Recipe_Map getRecipes()
+ {
+ return null;
+ }
+
+ public int getCapacity()
+ {
+ return 24000 * this.mTier;
+ }
public void onConfigLoad()
-/* 39: */ {
+ {
this.mEfficiency =GregTech_API.sMachineFile.get(ConfigCategories.machineconfig, "SteamTurbine.efficiency.tier."+this.mTier, (200 / consumedFluidPerOperation(GT_ModHandler.getSteam(1L))));
}
-/* 45: */
-/* 46: */ public int getEfficiency()
-/* 47: */ {
-/* 48:41 */ return this.mEfficiency;
-/* 49: */ }
-/* 50: */
-/* 51: */ public int getFuelValue(FluidStack aLiquid)
-/* 52: */ {
-/* 53:46 */ return GT_ModHandler.isSteam(aLiquid) ? 1 : 0;
-/* 54: */ }
-/* 55: */
-/* 56: */ public int consumedFluidPerOperation(FluidStack aLiquid)
-/* 57: */ {
-/* 58:51 */ return 2 + this.mTier;
-/* 59: */ }
-/* 60: */
-/* 61: */ public ITexture[] getFront(byte aColor)
-/* 62: */ {
-/* 63:54 */ return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_FRONT), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] };
-/* 64: */ }
-/* 65: */
-/* 66: */ public ITexture[] getBack(byte aColor)
-/* 67: */ {
-/* 68:55 */ return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_BACK) };
-/* 69: */ }
-/* 70: */
-/* 71: */ public ITexture[] getBottom(byte aColor)
-/* 72: */ {
-/* 73:56 */ return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_BOTTOM) };
-/* 74: */ }
-/* 75: */
-/* 76: */ public ITexture[] getTop(byte aColor)
-/* 77: */ {
-/* 78:57 */ return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_TOP) };
-/* 79: */ }
-/* 80: */
-/* 81: */ public ITexture[] getSides(byte aColor)
-/* 82: */ {
-/* 83:58 */ return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_SIDE) };
-/* 84: */ }
-/* 85: */
-/* 86: */ public ITexture[] getFrontActive(byte aColor)
-/* 87: */ {
-/* 88:59 */ return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_FRONT_ACTIVE), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] };
-/* 89: */ }
-/* 90: */
-/* 91: */ public ITexture[] getBackActive(byte aColor)
-/* 92: */ {
-/* 93:60 */ return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_BACK_ACTIVE) };
-/* 94: */ }
-/* 95: */
-/* 96: */ public ITexture[] getBottomActive(byte aColor)
-/* 97: */ {
-/* 98:61 */ return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_BOTTOM_ACTIVE) };
-/* 99: */ }
-/* :0: */
-/* :1: */ public ITexture[] getTopActive(byte aColor)
-/* :2: */ {
-/* :3:62 */ return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_TOP_ACTIVE) };
-/* :4: */ }
-/* :5: */
-/* :6: */ public ITexture[] getSidesActive(byte aColor)
-/* :7: */ {
-/* :8:63 */ return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_SIDE_ACTIVE) };
-/* :9: */ }
-/* ;0: */ }
+
+ public int getEfficiency()
+ {
+ return this.mEfficiency;
+ }
+
+ public int getFuelValue(FluidStack aLiquid)
+ {
+ return GT_ModHandler.isSteam(aLiquid) ? 1 : 0;
+ }
+
+ public int consumedFluidPerOperation(FluidStack aLiquid)
+ {
+ return 2 + this.mTier;
+ }
+
+ public ITexture[] getFront(byte aColor)
+ {
+ return new ITexture[] { super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_FRONT), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] };
+ }
+
+ public ITexture[] getBack(byte aColor)
+ {
+ return new ITexture[] { super.getBack(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_BACK) };
+ }
+
+ public ITexture[] getBottom(byte aColor)
+ {
+ return new ITexture[] { super.getBottom(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_BOTTOM) };
+ }
+
+ public ITexture[] getTop(byte aColor)
+ {
+ return new ITexture[] { super.getTop(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_TOP) };
+ }
+
+ public ITexture[] getSides(byte aColor)
+ {
+ return new ITexture[] { super.getSides(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_SIDE) };
+ }
+
+ public ITexture[] getFrontActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_FRONT_ACTIVE), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier] };
+ }
+
+ public ITexture[] getBackActive(byte aColor)
+ {
+ return new ITexture[] { super.getBackActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_BACK_ACTIVE) };
+ }
+
+ public ITexture[] getBottomActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_BOTTOM_ACTIVE) };
+ }
+
+ public ITexture[] getTopActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_TOP_ACTIVE) };
+ }
+
+ public ITexture[] getSidesActive(byte aColor)
+ {
+ return new ITexture[] { super.getSidesActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.STEAM_TURBINE_SIDE_ACTIVE) };
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
|
