public interface IFluidContainerItem
ItemFluidContainer.
 NOTE: Use of NBT data on the containing ItemStack is encouraged.| Modifier and Type | Method and Description | 
|---|---|
FluidStack | 
drain(ItemStack container,
     int maxDrain,
     boolean doDrain)  | 
int | 
fill(ItemStack container,
    FluidStack resource,
    boolean doFill)  | 
int | 
getCapacity(ItemStack container)  | 
FluidStack | 
getFluid(ItemStack container)  | 
FluidStack getFluid(ItemStack container)
container - ItemStack which is the fluid container.int getCapacity(ItemStack container)
container - ItemStack which is the fluid container.int fill(ItemStack container, FluidStack resource, boolean doFill)
container - ItemStack which is the fluid container.resource - FluidStack attempting to fill the container.doFill - If false, the fill will only be simulated.FluidStack drain(ItemStack container, int maxDrain, boolean doDrain)
container - ItemStack which is the fluid container.maxDrain - Maximum amount of fluid to be removed from the container.doFill - If false, the drain will only be simulated.