Class IngredientComponentStorageWrapperHandlerItemStackSlotless
java.lang.Object
org.cyclops.commoncapabilities.ingredient.storage.IngredientComponentStorageWrapperHandlerItemStackSlotless
- All Implemented Interfaces:
IIngredientComponentStorageWrapperHandler<net.minecraft.world.item.ItemStack,
Integer, ISlotlessItemHandler>
public class IngredientComponentStorageWrapperHandlerItemStackSlotless
extends Object
implements IIngredientComponentStorageWrapperHandler<net.minecraft.world.item.ItemStack,Integer,ISlotlessItemHandler>
Item storage wrapper handler for
ISlotlessItemHandler
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
ConstructorsConstructorDescriptionIngredientComponentStorageWrapperHandlerItemStackSlotless
(IngredientComponent<net.minecraft.world.item.ItemStack, Integer> ingredientComponent) -
Method Summary
Modifier and TypeMethodDescriptionIngredientComponent<net.minecraft.world.item.ItemStack,
Integer> net.minecraftforge.common.util.LazyOptional<ISlotlessItemHandler>
getStorage
(net.minecraftforge.common.capabilities.ICapabilityProvider capabilityProvider, net.minecraft.core.Direction facing) Get the storage within the given capability provider.IIngredientComponentStorage<net.minecraft.world.item.ItemStack,
Integer> wrapComponentStorage
(ISlotlessItemHandler storage) Wrap the given storage.wrapStorage
(IIngredientComponentStorage<net.minecraft.world.item.ItemStack, 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
-
IngredientComponentStorageWrapperHandlerItemStackSlotless
public IngredientComponentStorageWrapperHandlerItemStackSlotless(IngredientComponent<net.minecraft.world.item.ItemStack, Integer> ingredientComponent)
-
-
Method Details
-
wrapComponentStorage
public IIngredientComponentStorage<net.minecraft.world.item.ItemStack,Integer> wrapComponentStorage(ISlotlessItemHandler storage) Description copied from interface:IIngredientComponentStorageWrapperHandler
Wrap the given storage.- Specified by:
wrapComponentStorage
in interfaceIIngredientComponentStorageWrapperHandler<net.minecraft.world.item.ItemStack,
Integer, ISlotlessItemHandler> - Parameters:
storage
- The external storage to wrap.- Returns:
- A component storage.
-
wrapStorage
public ISlotlessItemHandler wrapStorage(IIngredientComponentStorage<net.minecraft.world.item.ItemStack, Integer> componentStorage) Description copied from interface:IIngredientComponentStorageWrapperHandler
Wrap the given storage.- Specified by:
wrapStorage
in interfaceIIngredientComponentStorageWrapperHandler<net.minecraft.world.item.ItemStack,
Integer, ISlotlessItemHandler> - Parameters:
componentStorage
- The component storage to wrap.- Returns:
- A component storage.
-
getStorage
public net.minecraftforge.common.util.LazyOptional<ISlotlessItemHandler> 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.minecraft.world.item.ItemStack,
Integer, ISlotlessItemHandler> - 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.minecraft.world.item.ItemStack,
Integer, ISlotlessItemHandler> - Returns:
- The ingredient component.
-