diff options
author | Martin Robertz <dream-master@gmx.net> | 2018-02-06 09:13:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-06 09:13:01 +0100 |
commit | f744b5c1790d52adaed05c65ca5af27f9f82ddc8 (patch) | |
tree | b3bd7e8283e8595e245028cff3201432caf711a9 /src/main/java/gregtech/api/util/GT_Utility.java | |
parent | 989a6358597f3acff976b81383c6f19828364090 (diff) | |
parent | f9b06fc228e0006e88c2aead97d109763f2d4a55 (diff) | |
download | GT5-Unofficial-f744b5c1790d52adaed05c65ca5af27f9f82ddc8.tar.gz GT5-Unofficial-f744b5c1790d52adaed05c65ca5af27f9f82ddc8.tar.bz2 GT5-Unofficial-f744b5c1790d52adaed05c65ca5af27f9f82ddc8.zip |
Merge pull request #102 from GTNewHorizons/upstream_changes
Upstream texture changes
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 57a115973e..fa7d96d0d6 100644 --- a/src/main/java/gregtech/api/util/GT_Utility.java +++ b/src/main/java/gregtech/api/util/GT_Utility.java @@ -9,9 +9,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; @@ -1126,6 +1128,17 @@ public class GT_Utility { } /** + * 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 */ public static String parseNumberToString(int aNumber) { |