public class SingleUseTank extends Tank
Tank.FluidGetResult
colorRenderCache, DEFAULT_HELP_KEY, fluidColors, helpInfo, toolTip
Constructor and Description |
---|
SingleUseTank(java.lang.String name,
int capacity,
net.minecraft.tileentity.TileEntity tile) |
Modifier and Type | Method and Description |
---|---|
int |
fill(net.minecraftforge.fluids.FluidStack resource,
boolean doFill) |
net.minecraftforge.fluids.FluidStack |
getAcceptedFluid() |
void |
readTankFromNBT(net.minecraft.nbt.NBTTagCompound nbt)
Reads some additional information to the nbt, for example
SingleUseTank will read in the filtering
fluid. |
void |
reset() |
void |
setAcceptedFluid(net.minecraftforge.fluids.Fluid fluid) |
void |
setAcceptedFluid(net.minecraftforge.fluids.FluidStack fluid) |
void |
writeTankToNBT(net.minecraft.nbt.NBTTagCompound nbt)
Writes some additional information to the nbt, for example
SingleUseTank will write out the filtering
fluid. |
canFillFluidType, drain, getClientAmount, getContentsString, getDebugString, getFluidForRender, getFluidType, getTankName, getToolTip, isEmpty, isFull, map, onGuiClicked, readFromBuffer, readFromNBT, refreshTooltip, serializeNBT, setFilter, toString, transferStackToTank, writeToBuffer, writeToNBT
canDrain, canDrainFluidType, canFill, drain, drain, drainInternal, drainInternal, fillInternal, getCapacity, getFluid, getFluidAmount, getInfo, getTankProperties, onContentsChanged, setCanDrain, setCanFill, setCapacity, setFluid, setTileEntity
public SingleUseTank(@Nonnull java.lang.String name, int capacity, net.minecraft.tileentity.TileEntity tile)
public int fill(net.minecraftforge.fluids.FluidStack resource, boolean doFill)
public void reset()
public void setAcceptedFluid(net.minecraftforge.fluids.Fluid fluid)
public void setAcceptedFluid(net.minecraftforge.fluids.FluidStack fluid)
public net.minecraftforge.fluids.FluidStack getAcceptedFluid()
public void writeTankToNBT(net.minecraft.nbt.NBTTagCompound nbt)
Tank
SingleUseTank
will write out the filtering
fluid.writeTankToNBT
in class Tank
public void readTankFromNBT(net.minecraft.nbt.NBTTagCompound nbt)
Tank
SingleUseTank
will read in the filtering
fluid.readTankFromNBT
in class Tank