aboutsummaryrefslogtreecommitdiff
path: root/src/Java/miscutil/gregtech/api/enums/GregtechTextures.java
diff options
context:
space:
mode:
authorDraknyte1 <Draknyte1@hotmail.com>2016-04-25 12:32:53 +1000
committerDraknyte1 <Draknyte1@hotmail.com>2016-04-25 12:32:53 +1000
commit9aedb8e33e04654018db03e3b2c4994ecccb6149 (patch)
tree07153f1d5718af8a6dd94debdcd9e6c43d9f6bbe /src/Java/miscutil/gregtech/api/enums/GregtechTextures.java
parentd0d5d53dad03639177a244ce159c30ee56c43b32 (diff)
downloadGT5-Unofficial-9aedb8e33e04654018db03e3b2c4994ecccb6149.tar.gz
GT5-Unofficial-9aedb8e33e04654018db03e3b2c4994ecccb6149.tar.bz2
GT5-Unofficial-9aedb8e33e04654018db03e3b2c4994ecccb6149.zip
Implemented the groundwork for some custom textures.
Not using them currently though, as they cause the client to crash. Will debug more & use default turbine textures for now.
Diffstat (limited to 'src/Java/miscutil/gregtech/api/enums/GregtechTextures.java')
-rw-r--r--src/Java/miscutil/gregtech/api/enums/GregtechTextures.java144
1 files changed, 75 insertions, 69 deletions
diff --git a/src/Java/miscutil/gregtech/api/enums/GregtechTextures.java b/src/Java/miscutil/gregtech/api/enums/GregtechTextures.java
index 9986add4fd..2db6f14599 100644
--- a/src/Java/miscutil/gregtech/api/enums/GregtechTextures.java
+++ b/src/Java/miscutil/gregtech/api/enums/GregtechTextures.java
@@ -1,6 +1,5 @@
package miscutil.gregtech.api.enums;
-import gregtech.api.GregTech_API;
import gregtech.api.interfaces.IIconContainer;
import gregtech.api.interfaces.ITexture;
import miscutil.core.lib.CORE;
@@ -9,71 +8,48 @@ import net.minecraft.util.IIcon;
import net.minecraft.util.ResourceLocation;
public class GregtechTextures {
- public enum BlockIcons implements IIconContainer, Runnable {
-
-
- LARGECENTRIFUGE1, LARGECENTRIFUGE2, LARGECENTRIFUGE3, LARGECENTRIFUGE4, LARGECENTRIFUGE5,
- LARGECENTRIFUGE6, LARGECENTRIFUGE7, LARGECENTRIFUGE8, LARGECENTRIFUGE9,
- LARGECENTRIFUGE_ACTIVE1, LARGECENTRIFUGE_ACTIVE2, LARGECENTRIFUGE_ACTIVE3, LARGECENTRIFUGE_ACTIVE4,
- LARGECENTRIFUGE_ACTIVE5, LARGECENTRIFUGE_ACTIVE6, LARGECENTRIFUGE_ACTIVE7, LARGECENTRIFUGE_ACTIVE8, LARGECENTRIFUGE_ACTIVE9;
-
- public static final IIconContainer[]
-
- CENTRIFUGE = new IIconContainer[]{
- LARGECENTRIFUGE1,
- LARGECENTRIFUGE2,
- LARGECENTRIFUGE3,
- LARGECENTRIFUGE4,
- LARGECENTRIFUGE5,
- LARGECENTRIFUGE6,
- LARGECENTRIFUGE7,
- LARGECENTRIFUGE8,
- LARGECENTRIFUGE9
- },
- CENTRIFUGE_ACTIVE = new IIconContainer[]{
- LARGECENTRIFUGE_ACTIVE1,
- LARGECENTRIFUGE_ACTIVE2,
- LARGECENTRIFUGE_ACTIVE3,
- LARGECENTRIFUGE_ACTIVE4,
- LARGECENTRIFUGE_ACTIVE5,
- LARGECENTRIFUGE_ACTIVE6,
- LARGECENTRIFUGE_ACTIVE7,
- LARGECENTRIFUGE_ACTIVE8,
- LARGECENTRIFUGE_ACTIVE9
- };
-
- public static ITexture[]
- GT_CASING_BLOCKS = new ITexture[64];
-
- protected IIcon mIcon;
-
- @Override
- public IIcon getIcon() {
- return mIcon;
- }
-
- @Override
- public IIcon getOverlayIcon() {
- return null;
- }
-
- @Override
- public void run() {
- mIcon = GregTech_API.sBlockIcons.registerIcon(CORE.RES_PATH_BLOCK + "iconsets/" + this);
- }
-
- @Override
- public ResourceLocation getTextureFile() {
- return TextureMap.locationBlocksTexture;
- }
-
- public static class CustomIcon implements IIconContainer, Runnable {
- protected IIcon mIcon;
- protected String mIconName;
-
- public CustomIcon(String aIconName) {
- mIconName = aIconName;
- GregTech_API.sGTBlockIconload.add(this);
+ public enum BlockIcons implements IIconContainer, Runnable {
+
+
+ LARGECENTRIFUGE1, LARGECENTRIFUGE2, LARGECENTRIFUGE3,
+ LARGECENTRIFUGE4, LARGECENTRIFUGE5, LARGECENTRIFUGE6,
+ LARGECENTRIFUGE7, LARGECENTRIFUGE8, LARGECENTRIFUGE9,
+ LARGECENTRIFUGE_ACTIVE1, LARGECENTRIFUGE_ACTIVE2, LARGECENTRIFUGE_ACTIVE3,
+ LARGECENTRIFUGE_ACTIVE4, LARGECENTRIFUGE_ACTIVE5, LARGECENTRIFUGE_ACTIVE6,
+ LARGECENTRIFUGE_ACTIVE7, LARGECENTRIFUGE_ACTIVE8, LARGECENTRIFUGE_ACTIVE9;
+
+ public static final IIconContainer[]
+
+ CENTRIFUGE = new IIconContainer[]{
+ LARGECENTRIFUGE1,
+ LARGECENTRIFUGE2,
+ LARGECENTRIFUGE3,
+ LARGECENTRIFUGE4,
+ LARGECENTRIFUGE5,
+ LARGECENTRIFUGE6,
+ LARGECENTRIFUGE7,
+ LARGECENTRIFUGE8,
+ LARGECENTRIFUGE9
+ },
+ CENTRIFUGE_ACTIVE = new IIconContainer[]{
+ LARGECENTRIFUGE_ACTIVE1,
+ LARGECENTRIFUGE_ACTIVE2,
+ LARGECENTRIFUGE_ACTIVE3,
+ LARGECENTRIFUGE_ACTIVE4,
+ LARGECENTRIFUGE_ACTIVE5,
+ LARGECENTRIFUGE_ACTIVE6,
+ LARGECENTRIFUGE_ACTIVE7,
+ LARGECENTRIFUGE_ACTIVE8,
+ LARGECENTRIFUGE_ACTIVE9
+ };
+
+ public static ITexture[]
+ GT_CASING_BLOCKS = new ITexture[64];
+
+ protected IIcon mIcon;
+
+ private BlockIcons() {
+ CORE.GT_BlockIconload.add(this);
}
@Override
@@ -88,13 +64,43 @@ public class GregtechTextures {
@Override
public void run() {
- mIcon = GregTech_API.sBlockIcons.registerIcon(CORE.RES_PATH_BLOCK + mIconName);
+ mIcon = CORE.GT_BlockIcons.registerIcon(CORE.RES_PATH_BLOCK + "iconsets/" + this);
}
@Override
public ResourceLocation getTextureFile() {
return TextureMap.locationBlocksTexture;
}
- }
-}}
+
+ public static class CustomIcon implements IIconContainer, Runnable {
+ protected IIcon mIcon;
+ protected String mIconName;
+
+ public CustomIcon(String aIconName) {
+ mIconName = aIconName;
+ CORE.GT_BlockIconload.add(this);
+ }
+
+ @Override
+ public IIcon getIcon() {
+ return mIcon;
+ }
+
+ @Override
+ public IIcon getOverlayIcon() {
+ return null;
+ }
+
+ @Override
+ public void run() {
+ mIcon = CORE.GT_BlockIcons.registerIcon(CORE.RES_PATH_BLOCK + mIconName);
+ }
+
+ @Override
+ public ResourceLocation getTextureFile() {
+ return TextureMap.locationBlocksTexture;
+ }
+ }
+ }
+}