Class VanillaEntityItemFrameFluidHandler
java.lang.Object
org.cyclops.commoncapabilities.modcompat.vanilla.capability.VanillaEntityItemFrameCapabilityDelegator<net.neoforged.neoforge.fluids.capability.IFluidHandlerItem>
org.cyclops.commoncapabilities.modcompat.vanilla.capability.fluidhandler.VanillaEntityItemFrameFluidHandler
- All Implemented Interfaces:
net.neoforged.neoforge.fluids.capability.IFluidHandler
public class VanillaEntityItemFrameFluidHandler
extends VanillaEntityItemFrameCapabilityDelegator<net.neoforged.neoforge.fluids.capability.IFluidHandlerItem>
implements net.neoforged.neoforge.fluids.capability.IFluidHandler
A fluid handler for entity item frames that have a fluid handler.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.neoforged.neoforge.fluids.capability.IFluidHandler
net.neoforged.neoforge.fluids.capability.IFluidHandler.FluidAction
-
Constructor Summary
ConstructorDescriptionVanillaEntityItemFrameFluidHandler
(net.minecraft.world.entity.decoration.ItemFrame entity) -
Method Summary
Modifier and TypeMethodDescriptionnet.neoforged.neoforge.fluids.FluidStack
drain
(int maxDrain, net.neoforged.neoforge.fluids.capability.IFluidHandler.FluidAction action) net.neoforged.neoforge.fluids.FluidStack
drain
(net.neoforged.neoforge.fluids.FluidStack resource, net.neoforged.neoforge.fluids.capability.IFluidHandler.FluidAction action) int
fill
(net.neoforged.neoforge.fluids.FluidStack resource, net.neoforged.neoforge.fluids.capability.IFluidHandler.FluidAction action) protected net.neoforged.neoforge.capabilities.ItemCapability
<net.neoforged.neoforge.fluids.capability.IFluidHandlerItem, Void> net.neoforged.neoforge.fluids.FluidStack
getFluidInTank
(int tank) int
getTankCapacity
(int tank) int
getTanks()
boolean
isFluidValid
(int tank, net.neoforged.neoforge.fluids.FluidStack stack) Methods inherited from class org.cyclops.commoncapabilities.modcompat.vanilla.capability.VanillaEntityItemFrameCapabilityDelegator
getCapability, getCapability, getEntity, getItemStack, updateItemStack
-
Constructor Details
-
VanillaEntityItemFrameFluidHandler
public VanillaEntityItemFrameFluidHandler(net.minecraft.world.entity.decoration.ItemFrame entity)
-
-
Method Details
-
getCapabilityType
protected net.neoforged.neoforge.capabilities.ItemCapability<net.neoforged.neoforge.fluids.capability.IFluidHandlerItem,Void> getCapabilityType()- Specified by:
getCapabilityType
in classVanillaEntityItemFrameCapabilityDelegator<net.neoforged.neoforge.fluids.capability.IFluidHandlerItem>
-
getTanks
public int getTanks()- Specified by:
getTanks
in interfacenet.neoforged.neoforge.fluids.capability.IFluidHandler
-
getFluidInTank
@Nonnull public net.neoforged.neoforge.fluids.FluidStack getFluidInTank(int tank) - Specified by:
getFluidInTank
in interfacenet.neoforged.neoforge.fluids.capability.IFluidHandler
-
getTankCapacity
public int getTankCapacity(int tank) - Specified by:
getTankCapacity
in interfacenet.neoforged.neoforge.fluids.capability.IFluidHandler
-
isFluidValid
public boolean isFluidValid(int tank, @Nonnull net.neoforged.neoforge.fluids.FluidStack stack) - Specified by:
isFluidValid
in interfacenet.neoforged.neoforge.fluids.capability.IFluidHandler
-
fill
public int fill(net.neoforged.neoforge.fluids.FluidStack resource, net.neoforged.neoforge.fluids.capability.IFluidHandler.FluidAction action) - Specified by:
fill
in interfacenet.neoforged.neoforge.fluids.capability.IFluidHandler
-
drain
public net.neoforged.neoforge.fluids.FluidStack drain(net.neoforged.neoforge.fluids.FluidStack resource, net.neoforged.neoforge.fluids.capability.IFluidHandler.FluidAction action) - Specified by:
drain
in interfacenet.neoforged.neoforge.fluids.capability.IFluidHandler
-
drain
public net.neoforged.neoforge.fluids.FluidStack drain(int maxDrain, net.neoforged.neoforge.fluids.capability.IFluidHandler.FluidAction action) - Specified by:
drain
in interfacenet.neoforged.neoforge.fluids.capability.IFluidHandler
-