Improve Heat mechanic, and get it rendering nicely.

Colour temperature algorithm adapted from http://www.tannerhelland.com/4435/convert-temperature-rgb-algorithm-code/ - thanks to Tanner Hellan for the useful post.
This commit is contained in:
Ben Spiers committed 2014-12-20 02:09:14 +00:00
1 parent 2bd2e94c7b
commit 4a404dfc78
9 files changed
+216 -6

No files matched your search

@@ -55,6 +55,14 @@ public class ItemNetworkReader extends ItemEnergized
return true;
}
else if(tileEntity instanceof IHeatTransfer)
{
player.addChatMessage(new ChatComponentText(EnumColor.GREY + "------------- " + EnumColor.DARK_BLUE + "[Mekanism]" + EnumColor.GREY + " -------------"));
player.addChatMessage(new ChatComponentText(EnumColor.GREY + " *Temperature: " + EnumColor.DARK_GREY + ((IHeatTransfer)tileEntity).getTemp() + "K above ambient"));
player.addChatMessage(new ChatComponentText(EnumColor.GREY + "------------- " + EnumColor.DARK_BLUE + "[=======]" + EnumColor.GREY + " -------------"));
return true;
}
else if(tileEntity != null)
{
setEnergy(stack, getEnergy(stack)-ENERGY_PER_USE);