diff --git a/common/buildcraft/energy/TileEngine.java b/common/buildcraft/energy/TileEngine.java index 85e80624..e8c0a194 100644 --- a/common/buildcraft/energy/TileEngine.java +++ b/common/buildcraft/energy/TileEngine.java @@ -111,7 +111,20 @@ public abstract class TileEngine extends TileBuildCraft implements IPowerRecepto public abstract ResourceLocation getChamberTexture(); - public abstract ResourceLocation getTrunkTexture(EnergyStage stage); + public ResourceLocation getTrunkTexture(EnergyStage stage) { + switch (stage) { + case BLUE: + return TRUNK_BLUE_TEXTURE; + case GREEN: + return TRUNK_GREEN_TEXTURE; + case YELLOW: + return TRUNK_YELLOW_TEXTURE; + case RED: + return TRUNK_RED_TEXTURE; + default: + return TRUNK_RED_TEXTURE; + } + } public boolean onBlockActivated(EntityPlayer player, ForgeDirection side) { return false; diff --git a/common/buildcraft/energy/TileEngineIron.java b/common/buildcraft/energy/TileEngineIron.java index 24842e53..f233bbf4 100644 --- a/common/buildcraft/energy/TileEngineIron.java +++ b/common/buildcraft/energy/TileEngineIron.java @@ -64,22 +64,6 @@ public class TileEngineIron extends TileEngineWithInventory implements IFluidHan return CHAMBER_TEXTURES[2]; } - @Override - public ResourceLocation getTrunkTexture(EnergyStage stage) { - switch (stage) { - case BLUE: - return TRUNK_BLUE_TEXTURE; - case GREEN: - return TRUNK_GREEN_TEXTURE; - case YELLOW: - return TRUNK_YELLOW_TEXTURE; - case RED: - return TRUNK_RED_TEXTURE; - default: - return TRUNK_RED_TEXTURE; - } - } - @Override public boolean onBlockActivated(EntityPlayer player, ForgeDirection side) { if (player.getCurrentEquippedItem() != null) { diff --git a/common/buildcraft/energy/TileEngineLegacy.java b/common/buildcraft/energy/TileEngineLegacy.java index 718f2566..b1f2b1bb 100644 --- a/common/buildcraft/energy/TileEngineLegacy.java +++ b/common/buildcraft/energy/TileEngineLegacy.java @@ -14,7 +14,7 @@ import net.minecraft.util.ResourceLocation; /** * This class is just intended to update pre 4.0 engines to the design. - * + *

* It can be deleted someday. */ public class TileEngineLegacy extends TileEngine { @@ -50,22 +50,6 @@ public class TileEngineLegacy extends TileEngine { return CHAMBER_TEXTURES[0]; } - @Override - public ResourceLocation getTrunkTexture(EnergyStage stage) { - switch (stage) { - case BLUE: - return TRUNK_BLUE_TEXTURE; - case GREEN: - return TRUNK_GREEN_TEXTURE; - case YELLOW: - return TRUNK_YELLOW_TEXTURE; - case RED: - return TRUNK_RED_TEXTURE; - default: - return TRUNK_RED_TEXTURE; - } - } - @Override public double getMaxEnergy() { return 1; diff --git a/common/buildcraft/energy/TileEngineStone.java b/common/buildcraft/energy/TileEngineStone.java index 1d1e5a19..e0889c05 100644 --- a/common/buildcraft/energy/TileEngineStone.java +++ b/common/buildcraft/energy/TileEngineStone.java @@ -51,22 +51,6 @@ public class TileEngineStone extends TileEngineWithInventory { return CHAMBER_TEXTURES[1]; } - @Override - public ResourceLocation getTrunkTexture(EnergyStage stage) { - switch (stage) { - case BLUE: - return TRUNK_BLUE_TEXTURE; - case GREEN: - return TRUNK_GREEN_TEXTURE; - case YELLOW: - return TRUNK_YELLOW_TEXTURE; - case RED: - return TRUNK_RED_TEXTURE; - default: - return TRUNK_RED_TEXTURE; - } - } - @Override public boolean onBlockActivated(EntityPlayer player, ForgeDirection side) { if (!worldObj.isRemote) { diff --git a/common/buildcraft/energy/TileEngineWood.java b/common/buildcraft/energy/TileEngineWood.java index 4e21e194..1ce5d85c 100644 --- a/common/buildcraft/energy/TileEngineWood.java +++ b/common/buildcraft/energy/TileEngineWood.java @@ -27,22 +27,6 @@ public class TileEngineWood extends TileEngine { return CHAMBER_TEXTURES[0]; } - @Override - public ResourceLocation getTrunkTexture(EnergyStage stage) { - switch (stage) { - case BLUE: - return TRUNK_BLUE_TEXTURE; - case GREEN: - return TRUNK_GREEN_TEXTURE; - case YELLOW: - return TRUNK_YELLOW_TEXTURE; - case RED: - return TRUNK_RED_TEXTURE; - default: - return TRUNK_RED_TEXTURE; - } - } - @Override public float explosionRange() { return 1;