Class IngredientComponentStorageWrapperHandlerItemStack<C>

java.lang.Object
org.cyclops.commoncapabilities.ingredient.storage.IngredientComponentStorageWrapperHandlerResourceHandler<C,net.neoforged.neoforge.transfer.item.ItemResource,net.minecraft.world.item.ItemStack,Integer>
org.cyclops.commoncapabilities.ingredient.storage.IngredientComponentStorageWrapperHandlerItemStack<C>
All Implemented Interfaces:
IIngredientComponentStorageWrapperHandler<net.minecraft.world.item.ItemStack,Integer,net.neoforged.neoforge.transfer.ResourceHandler<net.neoforged.neoforge.transfer.item.ItemResource>,C>

public class IngredientComponentStorageWrapperHandlerItemStack<C> extends IngredientComponentStorageWrapperHandlerResourceHandler<C,net.neoforged.neoforge.transfer.item.ItemResource,net.minecraft.world.item.ItemStack,Integer>
Item storage wrapper handler for ResourceHandler.
  • Constructor Details

    • IngredientComponentStorageWrapperHandlerItemStack

      public IngredientComponentStorageWrapperHandlerItemStack(IngredientComponent<net.minecraft.world.item.ItemStack,Integer> ingredientComponent, net.neoforged.neoforge.capabilities.BaseCapability<net.neoforged.neoforge.transfer.ResourceHandler<net.neoforged.neoforge.transfer.item.ItemResource>,C> capability, net.neoforged.neoforge.capabilities.BaseCapability<ISlotlessItemHandler,C> capabilitySlotless)
  • Method Details

    • wrapComponentStorage

      public IIngredientComponentStorage<net.minecraft.world.item.ItemStack,Integer> wrapComponentStorage(net.neoforged.neoforge.transfer.ResourceHandler<net.neoforged.neoforge.transfer.item.ItemResource> storage, ISlotlessItemHandler slotlessStorage)
    • getComponentStorage

      public IIngredientComponentStorage<net.minecraft.world.item.ItemStack,Integer> getComponentStorage(ICapabilityGetter<C> capabilityProvider, @Nullable C context)
      Description copied from interface: IIngredientComponentStorageWrapperHandler
      Get the ingredient storage within the given capability provider.
      Parameters:
      capabilityProvider - A capability provider.
      context - The context to get the storage with.
      Returns:
      An ingredient storage, or null if it does not exist.