Interface IItemStorageFactory

All Superinterfaces:
IFactory<FactoryVoidInput,ItemStorage>
All Known Implementing Classes:
ItemStorageFactory

public interface IItemStorageFactory extends IFactory<FactoryVoidInput,ItemStorage>
Interface for the IItemStorageFactory which is responsible for creating and maintaining ItemStorage objects.
  • Method Details

    • getNewInstance

      @NotNull default @NotNull ItemStorage getNewInstance(@NotNull @NotNull IFactoryController factoryController, @NotNull @NotNull FactoryVoidInput token, @NotNull @NotNull Object... context)
      Description copied from interface: IFactory
      Method to get a new instance of the output given the input and additional context data.
      Specified by:
      getNewInstance in interface IFactory<FactoryVoidInput,ItemStorage>
      Parameters:
      factoryController - The controller calling this factory method.
      token - The input to build a new output for.
      context - The context of the request.
      Returns:
      The new output instance for a given input.
    • getNewInstance

      @NotNull @NotNull ItemStorage getNewInstance(@NotNull @NotNull net.minecraft.world.item.ItemStack stack, int size, boolean ignoreDamage, boolean ignoreNBT)
      Method to get a new Instance of an itemStorage.
      Parameters:
      stack - the input.
      size - the grid size.
      Returns:
      a new Instance of ItemStorage.