Update TableDataProvider.java

This commit is contained in:
TheVikingWarrior committed 2014-10-21 16:32:15 +02:00
1 parent 742f5346bb
commit f0ffabd3eb
1 file changed
+4 -3
@@ -3,6 +3,7 @@ package tconstruct.plugins.waila;
import java.util.List;
import mcp.mobius.waila.api.*;
import net.minecraft.item.ItemStack;
import net.minecraft.util.StatCollector;
import tconstruct.smeltery.logic.CastingTableLogic;
public class TableDataProvider implements IWailaDataProvider
@@ -33,12 +34,12 @@ public class TableDataProvider implements IWailaDataProvider
CastingTableLogic te = (CastingTableLogic) accessor.getTileEntity();
if (te.getStackInSlot(1) != null)
{
currenttip.add("Contains: " + te.getStackInSlot(1).getDisplayName());
currenttip.add(StatCollector.translateToLocal("tconstruct.waila.contains") + te.getStackInSlot(1).getDisplayName());
}
if (te.getFluid() != null)
{
currenttip.add("Fluid: " + WailaRegistrar.fluidNameHelper(te.getFluid()));
currenttip.add("Amount: " + te.getFluidAmount() + "/" + te.getCapacity());
currenttip.add(StatCollector.translateToLocal("tconstruct.waila.liquidtag") + WailaRegistrar.fluidNameHelper(te.getFluid()));
currenttip.add(StatCollector.translateToLocal("tconstruct.waila.amounttag") + te.getFluidAmount() + "/" + te.getCapacity());
}
}
return currenttip;