EnchantmentCategory
Link to enchantmentcategory
Importare la Classe
Link to importare-la-classe
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 Copyimport crafttweaker.api.item.enchantment.EnchantmentCategory;
Enum Constants
Link to enum-constants
EnchantmentCategory is an enum. It has 14 enum constants. They are accessible using the code below.
ZenScript CopyEnchantmentCategory.ARMOR
EnchantmentCategory.ARMOR_FEET
EnchantmentCategory.ARMOR_LEGS
EnchantmentCategory.ARMOR_CHEST
EnchantmentCategory.ARMOR_HEAD
EnchantmentCategory.WEAPON
EnchantmentCategory.DIGGER
EnchantmentCategory.FISHING_ROD
EnchantmentCategory.TRIDENT
EnchantmentCategory.BREAKABLE
EnchantmentCategory.BOW
EnchantmentCategory.WEARABLE
EnchantmentCategory.CROSSBOW
EnchantmentCategory.VANISHABLE
Metodi
Link to metodi
Name: canEnchant
Return Type: boolean
ZenScript CopyEnchantmentCategory.canEnchant(item as ItemDefinition) as boolean
Parametro | Tipo | Descrizione |
---|---|---|
Parametro item | Tipo ItemDefinition | Descrizione No Description Provided |