mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-26 06:53:24 +00:00
Use seperate texture for machine bottom
The side looks a bit silly on the bottom, as it has an up and a down. The "machineTemplate.png"/"blockSoulMachineBlank.png" are nice and symetrical. Should they be copied over to "machineBottom.png"/"blockSoulMachineBottom.png"?
This commit is contained in:
1 parent
f928709e52
commit
ac9f7ce251
4 files changed
+24
-2
No files matched your search
@@ -70,6 +70,7 @@ public abstract class AbstractMachineBlock<T extends AbstractMachineEntity> exte
|
||||
this(mo, teClass, new Material(MapColor.ironColor));
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void init() {
|
||||
GameRegistry.registerBlock(this, modObject.unlocalisedName);
|
||||
GameRegistry.registerTileEntity(teClass, modObject.unlocalisedName + "TileEntity");
|
||||
@@ -81,6 +82,7 @@ public abstract class AbstractMachineBlock<T extends AbstractMachineEntity> exte
|
||||
return renderId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean openGui(World world, int x, int y, int z, EntityPlayer entityPlayer, int side) {
|
||||
if(!world.isRemote) {
|
||||
entityPlayer.openGui(EnderIO.instance, getGuiId(), world, x, y, z);
|
||||
@@ -100,7 +102,7 @@ public abstract class AbstractMachineBlock<T extends AbstractMachineEntity> exte
|
||||
iconBuffer = new IIcon[2][12];
|
||||
String side = getSideIconKey(false);
|
||||
// first the 6 sides in OFF state
|
||||
iconBuffer[0][0] = iIconRegister.registerIcon(side);
|
||||
iconBuffer[0][0] = iIconRegister.registerIcon(getBottomIconKey(false));
|
||||
iconBuffer[0][1] = iIconRegister.registerIcon(getTopIconKey(false));
|
||||
iconBuffer[0][2] = iIconRegister.registerIcon(getBackIconKey(false));
|
||||
iconBuffer[0][3] = iIconRegister.registerIcon(getMachineFrontIconKey(false));
|
||||
@@ -108,7 +110,7 @@ public abstract class AbstractMachineBlock<T extends AbstractMachineEntity> exte
|
||||
iconBuffer[0][5] = iIconRegister.registerIcon(side);
|
||||
|
||||
side = getSideIconKey(true);
|
||||
iconBuffer[0][6] = iIconRegister.registerIcon(side);
|
||||
iconBuffer[0][6] = iIconRegister.registerIcon(getBottomIconKey(true));
|
||||
iconBuffer[0][7] = iIconRegister.registerIcon(getTopIconKey(true));
|
||||
iconBuffer[0][8] = iIconRegister.registerIcon(getBackIconKey(true));
|
||||
iconBuffer[0][9] = iIconRegister.registerIcon(getMachineFrontIconKey(true));
|
||||
@@ -275,6 +277,10 @@ public abstract class AbstractMachineBlock<T extends AbstractMachineEntity> exte
|
||||
return "enderio:machineTop";
|
||||
}
|
||||
|
||||
protected String getBottomIconKey(boolean active) {
|
||||
return "enderio:machineTemplate";
|
||||
}
|
||||
|
||||
protected String getModelIconKey(boolean active) {
|
||||
return getSideIconKey(active);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user