mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 12:59:41 +00:00
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:
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);
|
||||
|
||||
Reference in new issue
Block a user