mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 20:52:26 +00:00
Add textures for stained glass top/bottom
This commit is contained in:
1 parent
9360983a8b
commit
eb36b6dd4a
34 files changed
+22
-9
No files matched your search
@@ -16,16 +16,18 @@ import tconstruct.util.config.PHConstruct;
|
||||
|
||||
public class GlassPaneConnectedMeta extends GlassPaneConnected {
|
||||
|
||||
public String[] textures;
|
||||
public IIcon[][] icons;
|
||||
public IIcon[] sideIcons;
|
||||
private final String[] textures;
|
||||
private final IIcon[][] icons;
|
||||
private final IIcon[] topIcons;
|
||||
private final IIcon[] bottomIcons;
|
||||
public static final boolean ignoreMetaForConnectedGlass = PHConstruct.connectedTexturesMode == 2;
|
||||
|
||||
public GlassPaneConnectedMeta(String location, boolean hasAlpha, String... textures) {
|
||||
super(location, hasAlpha);
|
||||
this.textures = textures;
|
||||
this.icons = new IIcon[textures.length][16];
|
||||
this.sideIcons = new IIcon[textures.length];
|
||||
this.topIcons = new IIcon[textures.length];
|
||||
this.bottomIcons = new IIcon[textures.length];
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -61,13 +63,19 @@ public class GlassPaneConnectedMeta extends GlassPaneConnected {
|
||||
public void registerBlockIcons(IIconRegister iconRegister) {
|
||||
for (int i = 0; i < textures.length; i++) {
|
||||
registerBlockIcons(iconRegister, icons[i], folder + "/" + textures[i]);
|
||||
sideIcons[i] = iconRegister.registerIcon("tinker:glass/" + folder + "/" + textures[i] + "/glass_side");
|
||||
topIcons[i] = iconRegister.registerIcon("tinker:glass/" + folder + "/" + textures[i] + "/glass_top");
|
||||
bottomIcons[i] = iconRegister.registerIcon("tinker:glass/" + folder + "/" + textures[i] + "/glass_bottom");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon getSideTextureIndex(int meta) {
|
||||
return sideIcons[meta];
|
||||
public IIcon getTopIcon(int meta) {
|
||||
return topIcons[meta];
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon getBottomIcon(int meta) {
|
||||
return bottomIcons[meta];
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user