ItemFluidContainer
for a CapabilityProvider implementing the Capability IFluidHandler
@Deprecated
public interface IFluidContainerItem
ItemFluidContainer
.
NOTE: Use of NBT data on the containing ItemStack is encouraged.FluidContainerItemWrapper
Modifier and Type | Method and Description |
---|---|
FluidStack |
drain(ItemStack container,
int maxDrain,
boolean doDrain)
Deprecated.
|
int |
fill(ItemStack container,
FluidStack resource,
boolean doFill)
Deprecated.
|
int |
getCapacity(ItemStack container)
Deprecated.
|
FluidStack |
getFluid(ItemStack container)
Deprecated.
|
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.doDrain
- If false, the drain will only be simulated.