MCWeightedItemStack
[PLACEHOLDER] ItemStack with a przypadek, zwykle used for recipe outputs. Ostrożnie, jeśli stos użyty do utworzenia Wagi Stack był zmienny, to ustawnik rozmiaru zmusza również oryginalny stos!
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
Implemented Interfaces
MCWeightedItemStack implements the following interfaces. That means all methods defined in these interfaces are also available in MCWeightedItemStack
Constructors
Manually creates the weightedItemStack. Usually you can use the operator or .weight(weight)
method of IItemStack, though
Methods
weight
Creates a new Weighted Stack with the given weight
Return Type: MCWeightedItemStack
Operators
MOD
Creates a new Weighted Stack with the given percentage
MUL
Sets the itemStack's amount. If the original Stack was mutable, also mutates the original stack's size.