Class FluidHandlerItemStack.Consumable

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

public static class FluidHandlerItemStack.Consumable extends FluidHandlerItemStack
Destroys the container item when it's emptied.
  • Constructor Details

    • Consumable

      public Consumable(Supplier<net.minecraft.core.component.DataComponentType<SimpleFluidContent>> componentType, net.minecraft.world.item.ItemStack container, int capacity)
  • Method Details