Search in sources :

Example 1 with StandardTank

use of forestry.core.fluids.StandardTank in project ForestryMC by ForestryMC.

the class TankWidget method getToolTip.

@Override
public ToolTip getToolTip(int mouseX, int mouseY) {
    IFluidTank tank = getTank();
    if (!(tank instanceof StandardTank)) {
        return null;
    }
    StandardTank standardTank = (StandardTank) tank;
    return standardTank.getToolTip();
}
Also used : IFluidTank(net.minecraftforge.fluids.IFluidTank) StandardTank(forestry.core.fluids.StandardTank)

Aggregations

StandardTank (forestry.core.fluids.StandardTank)1 IFluidTank (net.minecraftforge.fluids.IFluidTank)1