类 FluidHandlerItemStack.Consumable
java.lang.Object
net.neoforged.neoforge.fluids.capability.templates.FluidHandlerItemStack
net.neoforged.neoforge.fluids.capability.templates.FluidHandlerItemStack.Consumable
- 所有已实现的接口:
IFluidHandler
,IFluidHandlerItem
Destroys the container item when it's emptied.
-
嵌套类概要
从类继承的嵌套类/接口 net.neoforged.neoforge.fluids.capability.templates.FluidHandlerItemStack
FluidHandlerItemStack.Consumable, FluidHandlerItemStack.SwapEmpty
从接口继承的嵌套类/接口 net.neoforged.neoforge.fluids.capability.IFluidHandler
IFluidHandler.FluidAction
-
字段概要
从类继承的字段 net.neoforged.neoforge.fluids.capability.templates.FluidHandlerItemStack
capacity, componentType, container
-
构造器概要
构造器构造器说明Consumable
(Supplier<DataComponentType<SimpleFluidContent>> componentType, ItemStack container, int capacity) -
方法概要
从类继承的方法 net.neoforged.neoforge.fluids.capability.templates.FluidHandlerItemStack
canDrainFluidType, canFillFluidType, drain, drain, fill, getContainer, getFluid, getFluidInTank, getTankCapacity, getTanks, isFluidValid, setFluid
-
构造器详细资料
-
Consumable
public Consumable(Supplier<DataComponentType<SimpleFluidContent>> componentType, ItemStack container, int capacity)
-
-
方法详细资料
-
setContainerToEmpty
protected void setContainerToEmpty()从类复制的说明:FluidHandlerItemStack
Override this method for special handling. Can be used to swap out or destroy the container.
-