Fixed cables screwing up over chunk boundaries, fixed positioning of title text on certain machines, added a few tooltips to Induction Cells & Providers

This commit is contained in:
Aidan C. Brady committed 2015-03-04 13:38:41 -05:00
1 parent af4c1c6cd7
commit 48b895b80a
7 files changed
+27 -7

No files matched your search

@@ -116,8 +116,23 @@ public class ItemBlockBasic extends ItemBlock implements IEnergizedItem
list.add(EnumColor.DARK_RED + "Empty");
}
}
else if(Block.getBlockFromItem(this) == MekanismBlocks.BasicBlock2)
{
if(itemstack.getItemDamage() == 3)
{
InductionCellTier tier = InductionCellTier.values()[getTier(itemstack).ordinal()];
list.add(tier.getBaseTier().getColor() + MekanismUtils.localize("tooltip.capacity") + ": " + EnumColor.GREY + MekanismUtils.getEnergyDisplay(tier.MAX_ELECTRICITY));
}
else if(itemstack.getItemDamage() == 4)
{
InductionProviderTier tier = InductionProviderTier.values()[getTier(itemstack).ordinal()];
list.add(tier.getBaseTier().getColor() + MekanismUtils.localize("tooltip.outputRate") + ": " + EnumColor.GREY + MekanismUtils.getEnergyDisplay(tier.OUTPUT));
}
}
if(getMaxEnergy(itemstack) > 0)
if(getMaxEnergy(itemstack) > 0 && itemstack.stackTagCompound != null)
{
list.add(EnumColor.BRIGHT_GREEN + MekanismUtils.localize("tooltip.storedEnergy") + ": " + EnumColor.GREY + MekanismUtils.getEnergyDisplay(getEnergy(itemstack)));
}