diff options
author | Alkalus <draknyte1@hotmail.com> | 2017-10-08 19:55:35 +1000 |
---|---|---|
committer | Alkalus <draknyte1@hotmail.com> | 2017-10-08 19:55:35 +1000 |
commit | f70c7d40461a97f686d89c7020d33f4a8b88c266 (patch) | |
tree | de4f478af8778169e3f0cd5f7513715c1d11ba3f /src/main/java/gregtech/api/util/GT_Utility.java | |
parent | 85044d37a3c52464ad83bac643c1b4a6ec0cbc10 (diff) | |
download | GT5-Unofficial-f70c7d40461a97f686d89c7020d33f4a8b88c266.tar.gz GT5-Unofficial-f70c7d40461a97f686d89c7020d33f4a8b88c266.tar.bz2 GT5-Unofficial-f70c7d40461a97f686d89c7020d33f4a8b88c266.zip |
Added documentation to updateTexture in GT_MetaTileEntity_Hatch.
Added a function to GT_Utility called addTexturePage(byte page).
Added information about who is using which texture page in GT_Block_Casings1.
Updated GT_Block_Casings5 & GT_Block_Casings8 to utilise texture page 1.
Updated Large Chemical Reactor to reflect this change, now also uses Page 1 Index 48.
Moved the Pyrolyse oven casing index from 111 to 22, which is currently unused and within the Gregtech index space.
Diffstat (limited to 'src/main/java/gregtech/api/util/GT_Utility.java')
-rw-r--r-- | src/main/java/gregtech/api/util/GT_Utility.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/gregtech/api/util/GT_Utility.java b/src/main/java/gregtech/api/util/GT_Utility.java index fb89cbba8b..f102cc4246 100644 --- a/src/main/java/gregtech/api/util/GT_Utility.java +++ b/src/main/java/gregtech/api/util/GT_Utility.java @@ -8,9 +8,11 @@ import gregtech.api.enchants.Enchantment_Radioactivity; import gregtech.api.enums.GT_Values; import gregtech.api.enums.ItemList; import gregtech.api.enums.SubTag; +import gregtech.api.enums.Textures; import gregtech.api.events.BlockScanningEvent; import gregtech.api.interfaces.IDebugableBlock; import gregtech.api.interfaces.IProjectileItem; +import gregtech.api.interfaces.ITexture; import gregtech.api.interfaces.tileentity.*; import gregtech.api.items.GT_EnergyArmor_Item; import gregtech.api.items.GT_Generic_Item; @@ -1115,6 +1117,17 @@ public class GT_Utility { aInventory.setInventorySlotContents(i, null); } } + + /** + * Initializes a new texture page. + */ + public static boolean addTexturePage(byte page){ + if(Textures.BlockIcons.casingTexturePages[page]==null){ + Textures.BlockIcons.casingTexturePages[page]=new ITexture[128]; + return true; + } + return false; + } /** * Converts a Number to a String |