diff options
| author | aerospark <lukefay12@gmail.com> | 2015-06-23 15:29:05 -0700 |
|---|---|---|
| committer | aerospark <lukefay12@gmail.com> | 2015-06-23 15:29:05 -0700 |
| commit | a1504799f44ba2debdfef06317f24e7f9c1129d6 (patch) | |
| tree | 53e53ff64d2902c639951bd1d41f942ee171f836 /main/java/gregtech/common/tileentities | |
| parent | b803f59de5a66fcb4ef53e117b912fbbc2841392 (diff) | |
| download | GT5-Unofficial-a1504799f44ba2debdfef06317f24e7f9c1129d6.tar.gz GT5-Unofficial-a1504799f44ba2debdfef06317f24e7f9c1129d6.tar.bz2 GT5-Unofficial-a1504799f44ba2debdfef06317f24e7f9c1129d6.zip | |
strip linenumbers
Diffstat (limited to 'main/java/gregtech/common/tileentities')
54 files changed, 6427 insertions, 6427 deletions
diff --git a/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_ChestBuffer.java b/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_ChestBuffer.java index a14378f845..dade717e0d 100644 --- a/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_ChestBuffer.java +++ b/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_ChestBuffer.java @@ -1,78 +1,78 @@ -/* 1: */ package gregtech.common.tileentities.automation;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Textures;
+package gregtech.common.tileentities.automation;
+
+import gregtech.api.enums.Textures;
import gregtech.api.enums.Textures.BlockIcons;
-/* 4: */ import gregtech.api.interfaces.ITexture;
-/* 5: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 6: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 7: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Buffer;
-/* 8: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 9: */ import gregtech.api.util.GT_Utility;
-/* 10: */ import gregtech.common.gui.GT_Container_ChestBuffer;
-/* 11: */ import gregtech.common.gui.GT_GUIContainer_ChestBuffer;
-/* 12: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 13: */
-/* 14: */ public class GT_MetaTileEntity_ChestBuffer
-/* 15: */ extends GT_MetaTileEntity_Buffer
-/* 16: */ {
-/* 17: */ public GT_MetaTileEntity_ChestBuffer(int aID, String aName, String aNameRegional, int aTier)
-/* 18: */ {
-/* 19:16 */ super(aID, aName, aNameRegional, aTier, 28, "Buffering lots of incoming Items");
-/* 20: */ }
-/* 21: */
-/* 22: */ public GT_MetaTileEntity_ChestBuffer(int aID, String aName, String aNameRegional, int aTier, int aInvSlotCount, String aDescription)
-/* 23: */ {
-/* 24:20 */ super(aID, aName, aNameRegional, aTier, aInvSlotCount, aDescription);
-/* 25: */ }
-/* 26: */
-/* 27: */ public GT_MetaTileEntity_ChestBuffer(String aName, int aTier, int aInvSlotCount, String aDescription, ITexture[][][] aTextures)
-/* 28: */ {
-/* 29:24 */ super(aName, aTier, aInvSlotCount, aDescription, aTextures);
-/* 30: */ }
-/* 31: */
-/* 32: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 33: */ {
-/* 34:29 */ return new GT_MetaTileEntity_ChestBuffer(this.mName, this.mTier, this.mInventory.length, this.mDescription, this.mTextures);
-/* 35: */ }
-/* 36: */
-/* 37: */ public ITexture getOverlayIcon()
-/* 38: */ {
-/* 39:34 */ return new GT_RenderedTexture(Textures.BlockIcons.AUTOMATION_CHESTBUFFER);
-/* 40: */ }
-/* 41: */
-/* 42: */ public boolean isValidSlot(int aIndex)
-/* 43: */ {
-/* 44:37 */ return aIndex < this.mInventory.length - 1;
-/* 45: */ }
-/* 46: */
-/* 47: */ protected void moveItems(IGregTechTileEntity aBaseMetaTileEntity, long aTimer)
-/* 48: */ {
-/* 49:41 */ fillStacksIntoFirstSlots();
-/* 50:42 */ super.moveItems(aBaseMetaTileEntity, aTimer);
-/* 51:43 */ fillStacksIntoFirstSlots();
-/* 52: */ }
-/* 53: */
-/* 54: */ protected void fillStacksIntoFirstSlots()
-/* 55: */ {
-/* 56:47 */ for (int i = 0; i < this.mInventory.length - 1; i++) {
-/* 57:47 */ for (int j = i + 1; j < this.mInventory.length - 1; j++) {
-/* 58:47 */ if ((this.mInventory[j] != null) && ((this.mInventory[i] == null) || (GT_Utility.areStacksEqual(this.mInventory[i], this.mInventory[j])))) {
-/* 59:48 */ GT_Utility.moveStackFromSlotAToSlotB(getBaseMetaTileEntity(), getBaseMetaTileEntity(), j, i, (byte)64, (byte)1, (byte)64, (byte)1);
-/* 60: */ }
-/* 61: */ }
-/* 62: */ }
-/* 63: */ }
-/* 64: */
-/* 65: */ public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 66: */ {
-/* 67:54 */ return new GT_Container_ChestBuffer(aPlayerInventory, aBaseMetaTileEntity);
-/* 68: */ }
-/* 69: */
-/* 70: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 71: */ {
-/* 72:59 */ return new GT_GUIContainer_ChestBuffer(aPlayerInventory, aBaseMetaTileEntity);
-/* 73: */ }
-/* 74: */ }
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Buffer;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_Utility;
+import gregtech.common.gui.GT_Container_ChestBuffer;
+import gregtech.common.gui.GT_GUIContainer_ChestBuffer;
+import net.minecraft.entity.player.InventoryPlayer;
+
+public class GT_MetaTileEntity_ChestBuffer
+ extends GT_MetaTileEntity_Buffer
+{
+ public GT_MetaTileEntity_ChestBuffer(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, 28, "Buffering lots of incoming Items");
+ }
+
+ public GT_MetaTileEntity_ChestBuffer(int aID, String aName, String aNameRegional, int aTier, int aInvSlotCount, String aDescription)
+ {
+ super(aID, aName, aNameRegional, aTier, aInvSlotCount, aDescription);
+ }
+
+ public GT_MetaTileEntity_ChestBuffer(String aName, int aTier, int aInvSlotCount, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aTier, aInvSlotCount, aDescription, aTextures);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_ChestBuffer(this.mName, this.mTier, this.mInventory.length, this.mDescription, this.mTextures);
+ }
+
+ public ITexture getOverlayIcon()
+ {
+ return new GT_RenderedTexture(Textures.BlockIcons.AUTOMATION_CHESTBUFFER);
+ }
+
+ public boolean isValidSlot(int aIndex)
+ {
+ return aIndex < this.mInventory.length - 1;
+ }
+
+ protected void moveItems(IGregTechTileEntity aBaseMetaTileEntity, long aTimer)
+ {
+ fillStacksIntoFirstSlots();
+ super.moveItems(aBaseMetaTileEntity, aTimer);
+ fillStacksIntoFirstSlots();
+ }
+
+ protected void fillStacksIntoFirstSlots()
+ {
+ for (int i = 0; i < this.mInventory.length - 1; i++) {
+ for (int j = i + 1; j < this.mInventory.length - 1; j++) {
+ if ((this.mInventory[j] != null) && ((this.mInventory[i] == null) || (GT_Utility.areStacksEqual(this.mInventory[i], this.mInventory[j])))) {
+ GT_Utility.moveStackFromSlotAToSlotB(getBaseMetaTileEntity(), getBaseMetaTileEntity(), j, i, (byte)64, (byte)1, (byte)64, (byte)1);
+ }
+ }
+ }
+ }
+
+ public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_Container_ChestBuffer(aPlayerInventory, aBaseMetaTileEntity);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_ChestBuffer(aPlayerInventory, aBaseMetaTileEntity);
+ }
+}
/* 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/automation/GT_MetaTileEntity_Filter.java b/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_Filter.java index 15ec5a323c..48ad19bd83 100644 --- a/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_Filter.java +++ b/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_Filter.java @@ -1,91 +1,91 @@ -/* 1: */ package gregtech.common.tileentities.automation;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Textures;
+package gregtech.common.tileentities.automation;
+
+import gregtech.api.enums.Textures;
import gregtech.api.enums.Textures.BlockIcons;
-/* 4: */ import gregtech.api.interfaces.ITexture;
-/* 5: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 6: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 7: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Buffer;
-/* 8: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 9: */ import gregtech.api.util.GT_Utility;
-/* 10: */ import gregtech.common.gui.GT_Container_Filter;
-/* 11: */ import gregtech.common.gui.GT_GUIContainer_Filter;
-/* 12: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 13: */ import net.minecraft.item.ItemStack;
-/* 14: */ import net.minecraft.nbt.NBTTagCompound;
-/* 15: */
-/* 16: */ public class GT_MetaTileEntity_Filter
-/* 17: */ extends GT_MetaTileEntity_Buffer
-/* 18: */ {
-/* 19:17 */ public boolean bIgnoreNBT = false;
-/* 20:17 */ public boolean bInvertFilter = false;
-/* 21: */
-/* 22: */ public GT_MetaTileEntity_Filter(int aID, String aName, String aNameRegional, int aTier)
-/* 23: */ {
-/* 24:20 */ super(aID, aName, aNameRegional, aTier, 19, "Filtering incoming Items");
-/* 25: */ }
-/* 26: */
-/* 27: */ public GT_MetaTileEntity_Filter(String aName, int aTier, int aInvSlotCount, String aDescription, ITexture[][][] aTextures)
-/* 28: */ {
-/* 29:24 */ super(aName, aTier, aInvSlotCount, aDescription, aTextures);
-/* 30: */ }
-/* 31: */
-/* 32: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 33: */ {
-/* 34:29 */ return new GT_MetaTileEntity_Filter(this.mName, this.mTier, this.mInventory.length, this.mDescription, this.mTextures);
-/* 35: */ }
-/* 36: */
-/* 37: */ public ITexture getOverlayIcon()
-/* 38: */ {
-/* 39:34 */ return new GT_RenderedTexture(Textures.BlockIcons.AUTOMATION_FILTER);
-/* 40: */ }
-/* 41: */
-/* 42: */ public boolean isValidSlot(int aIndex)
-/* 43: */ {
-/* 44:37 */ return aIndex < 9;
-/* 45: */ }
-/* 46: */
-/* 47: */ public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 48: */ {
-/* 49:41 */ return new GT_Container_Filter(aPlayerInventory, aBaseMetaTileEntity);
-/* 50: */ }
-/* 51: */
-/* 52: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 53: */ {
-/* 54:46 */ return new GT_GUIContainer_Filter(aPlayerInventory, aBaseMetaTileEntity);
-/* 55: */ }
-/* 56: */
-/* 57: */ public void saveNBTData(NBTTagCompound aNBT)
-/* 58: */ {
-/* 59:51 */ super.saveNBTData(aNBT);
-/* 60:52 */ aNBT.setBoolean("bInvertFilter", this.bInvertFilter);
-/* 61:53 */ aNBT.setBoolean("bIgnoreNBT", this.bIgnoreNBT);
-/* 62: */ }
-/* 63: */
-/* 64: */ public void loadNBTData(NBTTagCompound aNBT)
-/* 65: */ {
-/* 66:58 */ super.loadNBTData(aNBT);
-/* 67:59 */ this.bInvertFilter = aNBT.getBoolean("bInvertFilter");
-/* 68:60 */ this.bIgnoreNBT = aNBT.getBoolean("bIgnoreNBT");
-/* 69: */ }
-/* 70: */
-/* 71: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 72: */ {
-/* 73:65 */ if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {
-/* 74:65 */ return false;
-/* 75: */ }
-/* 76:66 */ if (this.bInvertFilter)
-/* 77: */ {
-/* 78:67 */ for (byte i = 9; i < 18; i = (byte)(i + 1)) {
-/* 79:67 */ if (GT_Utility.areStacksEqual(this.mInventory[i], aStack, this.bIgnoreNBT)) {
-/* 80:67 */ return false;
-/* 81: */ }
-/* 82: */ }
-/* 83:68 */ return true;
-/* 84: */ }
-/* 85:70 */ return GT_Utility.areStacksEqual(this.mInventory[(aIndex + 9)], aStack, this.bIgnoreNBT);
-/* 86: */ }
-/* 87: */ }
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Buffer;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_Utility;
+import gregtech.common.gui.GT_Container_Filter;
+import gregtech.common.gui.GT_GUIContainer_Filter;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+
+public class GT_MetaTileEntity_Filter
+ extends GT_MetaTileEntity_Buffer
+{
+ public boolean bIgnoreNBT = false;
+ public boolean bInvertFilter = false;
+
+ public GT_MetaTileEntity_Filter(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, 19, "Filtering incoming Items");
+ }
+
+ public GT_MetaTileEntity_Filter(String aName, int aTier, int aInvSlotCount, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aTier, aInvSlotCount, aDescription, aTextures);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_Filter(this.mName, this.mTier, this.mInventory.length, this.mDescription, this.mTextures);
+ }
+
+ public ITexture getOverlayIcon()
+ {
+ return new GT_RenderedTexture(Textures.BlockIcons.AUTOMATION_FILTER);
+ }
+
+ public boolean isValidSlot(int aIndex)
+ {
+ return aIndex < 9;
+ }
+
+ public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_Container_Filter(aPlayerInventory, aBaseMetaTileEntity);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_Filter(aPlayerInventory, aBaseMetaTileEntity);
+ }
+
+ public void saveNBTData(NBTTagCompound aNBT)
+ {
+ super.saveNBTData(aNBT);
+ aNBT.setBoolean("bInvertFilter", this.bInvertFilter);
+ aNBT.setBoolean("bIgnoreNBT", this.bIgnoreNBT);
+ }
+
+ public void loadNBTData(NBTTagCompound aNBT)
+ {
+ super.loadNBTData(aNBT);
+ this.bInvertFilter = aNBT.getBoolean("bInvertFilter");
+ this.bIgnoreNBT = aNBT.getBoolean("bIgnoreNBT");
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
+ if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {
+ return false;
+ }
+ if (this.bInvertFilter)
+ {
+ for (byte i = 9; i < 18; i = (byte)(i + 1)) {
+ if (GT_Utility.areStacksEqual(this.mInventory[i], aStack, this.bIgnoreNBT)) {
+ return false;
+ }
+ }
+ return true;
+ }
+ return GT_Utility.areStacksEqual(this.mInventory[(aIndex + 9)], aStack, this.bIgnoreNBT);
+ }
+}
/* 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/automation/GT_MetaTileEntity_Regulator.java b/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_Regulator.java index fda2e12630..c9670a3480 100644 --- a/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_Regulator.java +++ b/main/java/gregtech/common/tileentities/automation/GT_MetaTileEntity_Regulator.java @@ -1,110 +1,110 @@ -/* 1: */ package gregtech.common.tileentities.automation;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Textures;
+package gregtech.common.tileentities.automation;
+
+import gregtech.api.enums.Textures;
import gregtech.api.enums.Textures.BlockIcons;
-/* 4: */ import gregtech.api.interfaces.ITexture;
-/* 5: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 6: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 7: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Buffer;
-/* 8: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 9: */ import gregtech.api.util.GT_Utility;
-/* 10: */ import gregtech.common.gui.GT_Container_Regulator;
-/* 11: */ import gregtech.common.gui.GT_GUIContainer_Regulator;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Buffer;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_Utility;
+import gregtech.common.gui.GT_Container_Regulator;
+import gregtech.common.gui.GT_GUIContainer_Regulator;
+
+import java.util.Arrays;
-/* 12: */ import java.util.Arrays;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
-/* 13: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 14: */ import net.minecraft.item.ItemStack;
-/* 15: */ import net.minecraft.nbt.NBTTagCompound;
-/* 16: */
-/* 17: */ public class GT_MetaTileEntity_Regulator
-/* 18: */ extends GT_MetaTileEntity_Buffer
-/* 19: */ {
-/* 20:20 */ public int[] mTargetSlots = { 0, 0, 0, 0, 0, 0, 0, 0, 0 };
-/* 21: */
-/* 22: */ public GT_MetaTileEntity_Regulator(int aID, String aName, String aNameRegional, int aTier)
-/* 23: */ {
-/* 24:23 */ super(aID, aName, aNameRegional, aTier, 19, "Regulating incoming Items");
-/* 25: */ }
-/* 26: */
-/* 27: */ public GT_MetaTileEntity_Regulator(String aName, int aTier, int aInvSlotCount, String aDescription, ITexture[][][] aTextures)
-/* 28: */ {
-/* 29:27 */ super(aName, aTier, aInvSlotCount, aDescription, aTextures);
-/* 30: */ }
-/* 31: */
-/* 32: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 33: */ {
-/* 34:32 */ return new GT_MetaTileEntity_Regulator(this.mName, this.mTier, this.m |
