Class ImmutableItemStorage

java.lang.Object
com.minecolonies.api.crafting.ItemStorage
com.minecolonies.api.crafting.ImmutableItemStorage

public class ImmutableItemStorage extends ItemStorage
Immutable ItemStorage version.
  • Constructor Details

    • ImmutableItemStorage

      public ImmutableItemStorage(@NotNull @NotNull ItemStorage storage)
      Creates an instance of the storage.
      Parameters:
      storage - the mutable itemstorage to create it from.
  • Method Details

    • setAmount

      public void setAmount(int amount)
      Description copied from class: ItemStorage
      Setter for the quantity.
      Overrides:
      setAmount in class ItemStorage
      Parameters:
      amount - the amount.