Class IngredientComponentStorageWrapperHandlerFluidStack.FluidStorageWrapper
java.lang.Object
org.cyclops.commoncapabilities.ingredient.storage.IngredientComponentStorageWrapperHandlerFluidStack.FluidStorageWrapper
- All Implemented Interfaces:
net.neoforged.neoforge.fluids.capability.IFluidHandler
- Direct Known Subclasses:
IngredientComponentStorageWrapperHandlerFluidStack.FluidStorageWrapperSlotted
- Enclosing class:
IngredientComponentStorageWrapperHandlerFluidStack<C>
public static class IngredientComponentStorageWrapperHandlerFluidStack.FluidStorageWrapper
extends Object
implements net.neoforged.neoforge.fluids.capability.IFluidHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.neoforged.neoforge.fluids.capability.IFluidHandler
net.neoforged.neoforge.fluids.capability.IFluidHandler.FluidAction
-
Constructor Summary
ConstructorDescriptionFluidStorageWrapper
(IIngredientComponentStorage<net.neoforged.neoforge.fluids.FluidStack, Integer> storage) -
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) net.neoforged.neoforge.fluids.FluidStack
getFluidInTank
(int tank) int
getTankCapacity
(int tank) int
getTanks()
boolean
isFluidValid
(int tank, net.neoforged.neoforge.fluids.FluidStack stack)
-
Constructor Details
-
FluidStorageWrapper
public FluidStorageWrapper(IIngredientComponentStorage<net.neoforged.neoforge.fluids.FluidStack, Integer> storage)
-
-
Method Details
-
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
-