public class FluidTankProperties extends java.lang.Object implements IFluidTankProperties
IFluidTankProperties.| Constructor and Description |
|---|
FluidTankProperties(FluidStack contents,
int capacity) |
FluidTankProperties(FluidStack contents,
int capacity,
boolean canFill,
boolean canDrain) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDrain()
Returns true if the tank can be drained at any time (even if it is currently empty).
|
boolean |
canDrainFluidType(FluidStack fluidStack)
Returns true if the tank can drain out this a specific of fluid.
|
boolean |
canFill()
Returns true if the tank can be filled at any time (even if it is currently full).
|
boolean |
canFillFluidType(FluidStack fluidStack)
Returns true if the tank can be filled with a specific type of fluid.
|
static FluidTankProperties[] |
convert(FluidTankInfo[] fluidTankInfos) |
int |
getCapacity() |
FluidStack |
getContents() |
public FluidTankProperties(FluidStack contents, int capacity)
public FluidTankProperties(FluidStack contents, int capacity, boolean canFill, boolean canDrain)
public static FluidTankProperties[] convert(FluidTankInfo[] fluidTankInfos)
public FluidStack getContents()
getContents in interface IFluidTankPropertiesIFluidHandler.public int getCapacity()
getCapacity in interface IFluidTankPropertiespublic boolean canFill()
IFluidTankPropertiescanFill in interface IFluidTankPropertiespublic boolean canDrain()
IFluidTankPropertiescanDrain in interface IFluidTankPropertiespublic boolean canFillFluidType(FluidStack fluidStack)
IFluidTankPropertiesFluidStack is used here because fluid properties can depend on NBT, the amount is ignored.canFillFluidType in interface IFluidTankPropertiespublic boolean canDrainFluidType(FluidStack fluidStack)
IFluidTankPropertiesFluidStack is used here because fluid properties can depend on NBT, the amount is ignored.canDrainFluidType in interface IFluidTankProperties