Class FluidHandlerItemStack.SwapEmpty

java.lang.Object
net.neoforged.neoforge.fluids.capability.templates.FluidHandlerItemStack
net.neoforged.neoforge.fluids.capability.templates.FluidHandlerItemStack.SwapEmpty
All Implemented Interfaces:
IFluidHandler, IFluidHandlerItem
Enclosing class:
FluidHandlerItemStack

@Deprecated(since="1.21.9", forRemoval=true) public static class FluidHandlerItemStack.SwapEmpty extends FluidHandlerItemStack
Deprecated, for removal: This API element is subject to removal in a future version.
Swaps the container item for a different one when it's emptied.
  • Field Details

    • emptyContainer

      protected final ItemStack emptyContainer
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

  • Method Details

    • setContainerToEmpty

      protected void setContainerToEmpty()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from class: FluidHandlerItemStack
      Override this method for special handling. Can be used to swap out or destroy the container.
      Overrides:
      setContainerToEmpty in class FluidHandlerItemStack