public class ImplicitFluidConversionTank extends SingleUseTank
NBT_ACCEPTED_FLUID, tile| Constructor and Description |
|---|
ImplicitFluidConversionTank(java.lang.String name,
int capacity,
EvilCraftTileEntity tile,
ImplicitFluidConverter converter)
Make a new tank instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCompletelyFill(net.minecraftforge.fluids.FluidStack fluidStack)
If this tank can completely contain the given fluid.
|
boolean |
canTankAccept(net.minecraftforge.fluids.Fluid fluid)
If this tank can accept the given fluid.
|
int |
fill(net.minecraftforge.fluids.FluidStack resource,
boolean doFill) |
drain, getAcceptedFluid, readTankFromNBT, reset, sendUpdate, setAcceptedFluid, writeTankToNBTgetFluidType, getName, isEmpty, isFull, readFromNBT, replaceInnerFluid, writeToNBTpublic ImplicitFluidConversionTank(java.lang.String name,
int capacity,
EvilCraftTileEntity tile,
ImplicitFluidConverter converter)
name - The name for the tank, will be used for NBT storage.capacity - The capacity (mB) for the tank.tile - The TileEntity that uses this tank.converter - The fluid converter.public int fill(net.minecraftforge.fluids.FluidStack resource,
boolean doFill)
fill in interface net.minecraftforge.fluids.IFluidTankfill in class SingleUseTankpublic boolean canTankAccept(net.minecraftforge.fluids.Fluid fluid)
SingleUseTankcanTankAccept in class SingleUseTankfluid - The fluid that needs to be checked.public boolean canCompletelyFill(net.minecraftforge.fluids.FluidStack fluidStack)
SingleUseTankcanCompletelyFill in class SingleUseTankfluidStack - The fluid to try to fill.