Class IngredientComponentStorageWrapperHandlerFluidStack
java.lang.Object
org.cyclops.commoncapabilities.ingredient.storage.IngredientComponentStorageWrapperHandlerFluidStack
- All Implemented Interfaces:
IIngredientComponentStorageWrapperHandler<net.minecraftforge.fluids.FluidStack,
Integer, net.minecraftforge.fluids.capability.IFluidHandler>
public class IngredientComponentStorageWrapperHandlerFluidStack
extends Object
implements IIngredientComponentStorageWrapperHandler<net.minecraftforge.fluids.FluidStack,Integer,net.minecraftforge.fluids.capability.IFluidHandler>
Fluid storage wrapper handler for
IFluidHandler
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
-
Constructor Summary
ConstructorsConstructorDescriptionIngredientComponentStorageWrapperHandlerFluidStack
(IngredientComponent<net.minecraftforge.fluids.FluidStack, Integer> ingredientComponent) -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
fluidActionToSimulate
(net.minecraftforge.fluids.capability.IFluidHandler.FluidAction fluidAction) IngredientComponent<net.minecraftforge.fluids.FluidStack,
Integer> net.minecraftforge.common.util.LazyOptional<net.minecraftforge.fluids.capability.IFluidHandler>
getStorage
(net.minecraftforge.common.capabilities.ICapabilityProvider capabilityProvider, net.minecraft.core.Direction facing) Get the storage within the given capability provider.static net.minecraftforge.fluids.capability.IFluidHandler.FluidAction
simulateToFluidAction
(boolean simulate) IIngredientComponentStorage<net.minecraftforge.fluids.FluidStack,
Integer> wrapComponentStorage
(net.minecraftforge.fluids.capability.IFluidHandler storage) Wrap the given storage.net.minecraftforge.fluids.capability.IFluidHandler
wrapStorage
(IIngredientComponentStorage<net.minecraftforge.fluids.FluidStack, Integer> componentStorage) Wrap the given storage.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorageWrapperHandler
getComponentStorage
-
Constructor Details
-
IngredientComponentStorageWrapperHandlerFluidStack
public IngredientComponentStorageWrapperHandlerFluidStack(IngredientComponent<net.minecraftforge.fluids.FluidStack, Integer> ingredientComponent)
-
-
Method Details
-
simulateToFluidAction
public static net.minecraftforge.fluids.capability.IFluidHandler.FluidAction simulateToFluidAction(boolean simulate) -
fluidActionToSimulate
public static boolean fluidActionToSimulate(net.minecraftforge.fluids.capability.IFluidHandler.FluidAction fluidAction) -
wrapComponentStorage
public IIngredientComponentStorage<net.minecraftforge.fluids.FluidStack,Integer> wrapComponentStorage(net.minecraftforge.fluids.capability.IFluidHandler storage) Description copied from interface:IIngredientComponentStorageWrapperHandler
Wrap the given storage.- Specified by:
wrapComponentStorage
in interfaceIIngredientComponentStorageWrapperHandler<net.minecraftforge.fluids.FluidStack,
Integer, net.minecraftforge.fluids.capability.IFluidHandler> - Parameters:
storage
- The external storage to wrap.- Returns:
- A component storage.
-
wrapStorage
public net.minecraftforge.fluids.capability.IFluidHandler wrapStorage(IIngredientComponentStorage<net.minecraftforge.fluids.FluidStack, Integer> componentStorage) Description copied from interface:IIngredientComponentStorageWrapperHandler
Wrap the given storage.- Specified by:
wrapStorage
in interfaceIIngredientComponentStorageWrapperHandler<net.minecraftforge.fluids.FluidStack,
Integer, net.minecraftforge.fluids.capability.IFluidHandler> - Parameters:
componentStorage
- The component storage to wrap.- Returns:
- A component storage.
-
getStorage
public net.minecraftforge.common.util.LazyOptional<net.minecraftforge.fluids.capability.IFluidHandler> getStorage(net.minecraftforge.common.capabilities.ICapabilityProvider capabilityProvider, @Nullable net.minecraft.core.Direction facing) Description copied from interface:IIngredientComponentStorageWrapperHandler
Get the storage within the given capability provider.- Specified by:
getStorage
in interfaceIIngredientComponentStorageWrapperHandler<net.minecraftforge.fluids.FluidStack,
Integer, net.minecraftforge.fluids.capability.IFluidHandler> - Parameters:
capabilityProvider
- A capability provider.facing
- The side to get the storage from.- Returns:
- A storage, or null if it does not exist.
-
getComponent
- Specified by:
getComponent
in interfaceIIngredientComponentStorageWrapperHandler<net.minecraftforge.fluids.FluidStack,
Integer, net.minecraftforge.fluids.capability.IFluidHandler> - Returns:
- The ingredient component.
-