EnchantmentRarity

Diese Klasse importieren

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.

ZenScript
Copy
import crafttweaker.api.enchantment.EnchantmentRarity;

Extending Enum<EnchantmentRarity>

EnchantmentRarity extends Enum<EnchantmentRarity>. That means all methods available in Enum<EnchantmentRarity> are also available in EnchantmentRarity

Static Properties

NameTypeHas GetterHas SetterBeschreibung
COMMONEnchantmentRaritytruefalseNo Description Provided
RAREEnchantmentRaritytruefalseNo Description Provided
UNCOMMONEnchantmentRaritytruefalseNo Description Provided
VERY_RAREEnchantmentRaritytruefalseNo Description Provided

Methoden

getWeight

Gets the weight of this enchantment rarity.

Returns: The weight of the enchantment rarity.
Return Type: int

ZenScript
Copy
// EnchantmentRarity.getWeight() as int

EnchantmentRarity.COMMON.getWeight();

Properties

NameTypeHas GetterHas SetterBeschreibung
weightinttruefalseGets the weight of this enchantment rarity.