Package com.minecolonies.api.crafting
Class ImmutableItemStorage
java.lang.Object
com.minecolonies.api.crafting.ItemStorage
com.minecolonies.api.crafting.ImmutableItemStorage
Immutable ItemStorage version.
-
Field Summary
Fields inherited from class com.minecolonies.api.crafting.ItemStorage
shouldIgnoreDamageValue, shouldIgnoreNBTValue -
Constructor Summary
ConstructorsConstructorDescriptionImmutableItemStorage(@NotNull ItemStorage storage) Creates an instance of the storage. -
Method Summary
Methods inherited from class com.minecolonies.api.crafting.ItemStorage
copy, equals, getAmount, getDamageValue, getItem, getItemStack, getItemStackOfListMatchingPredicate, getRemainingDurablityValue, hashCode, ignoreDamageValue, ignoreNBT, isEmpty, matchDefinitionEquals, toImmutable, toString
-
Constructor Details
-
ImmutableItemStorage
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:ItemStorageSetter for the quantity.- Overrides:
setAmountin classItemStorage- Parameters:
amount- the amount.
-