Enchantment
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.
Methods
Return Type: boolean
Parameter | Type |
---|---|
Parameter stack | Type ItemStack |
Parameter | Type |
---|---|
Parameter source | Type LivingEntity |
Parameter target | Type Entity |
Parameter level | Type int |
Parameter | Type |
---|---|
Parameter source | Type LivingEntity |
Parameter target | Type Entity |
Parameter level | Type int |
Return Type: float
Parameter | Type |
---|---|
Parameter level | Type int |
Parameter mobType | Type MobType |
Return Type: int
Parameter | Type |
---|---|
Parameter level | Type int |
Parameter source | Type DamageSource |
Return Type: string
Return Type: Component
Parameter | Type |
---|---|
Parameter level | Type int |
Return Type: int
Parameter | Type |
---|---|
Parameter level | Type int |
Return Type: int
Return Type: int
Parameter | Type |
---|---|
Parameter level | Type int |
Return Type: int
Return Type: Rarity
Return Type: ItemStack[EquipmentSlot]
Parameter | Type |
---|---|
Parameter entity | Type LivingEntity |
Return Type: boolean
Parameter | Type |
---|---|
Parameter other | Type Enchantment |
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name commandString | Type string | Has Getter true | Has Setter false |
Name descriptionId | Type string | Has Getter true | Has Setter false |
Name isCurse | Type boolean | Has Getter true | Has Setter false |
Name isDiscoverable | Type boolean | Has Getter true | Has Setter false |
Name isTradeable | Type boolean | Has Getter true | Has Setter false |
Name isTreasureOnly | Type boolean | Has Getter true | Has Setter false |
Name maxLevel | Type int | Has Getter true | Has Setter false |
Name minLevel | Type int | Has Getter true | Has Setter false |
Name rarity | Type Rarity | Has Getter true | Has Setter false |