Search in sources :

Example 21 with FluidTankInfo

use of net.minecraftforge.fluids.FluidTankInfo in project AgriCraft by AgriCraft.

the class TileEntityTank method getTankInfo.

@Override
public FluidTankInfo[] getTankInfo(EnumFacing from) {
    FluidTankInfo[] info = new FluidTankInfo[1];
    info[0] = new FluidTankInfo(this.getContents(), this.getCapacity());
    return info;
}
Also used : FluidTankInfo(net.minecraftforge.fluids.FluidTankInfo)

Aggregations

FluidTankInfo (net.minecraftforge.fluids.FluidTankInfo)21 IFluidHandler (net.minecraftforge.fluids.IFluidHandler)11 FluidStack (net.minecraftforge.fluids.FluidStack)10 ForgeDirection (net.minecraftforge.common.util.ForgeDirection)9 TileEntity (net.minecraft.tileentity.TileEntity)8 FluidIdentifier (logisticspipes.utils.FluidIdentifier)6 RenderInfo (pneumaticCraft.client.util.RenderUtils.RenderInfo)6 HashMap (java.util.HashMap)4 ISpecialTankAccessHandler (logisticspipes.interfaces.ISpecialTankAccessHandler)4 ISpecialTankHandler (logisticspipes.interfaces.ISpecialTankHandler)4 Map (java.util.Map)2 Entry (java.util.Map.Entry)2 LogisticsPipes (logisticspipes.LogisticsPipes)2 GuiIDs (logisticspipes.network.GuiIDs)2 MainProxy (logisticspipes.proxy.MainProxy)2 SimpleServiceLocator (logisticspipes.proxy.SimpleServiceLocator)2 RequestTree (logisticspipes.request.RequestTree)2 Textures (logisticspipes.textures.Textures)2 TextureType (logisticspipes.textures.Textures.TextureType)2 ItemIdentifier (logisticspipes.utils.item.ItemIdentifier)2