Class RefEnchantment
-
- All Implemented Interfaces:
public abstract class RefEnchantment
-
-
Field Summary
Fields Modifier and Type Field Description public final RefEquipmentSlotslotspublic final RefEnchantmentCategorycategory
-
Method Summary
Modifier and Type Method Description native Map<RefEquipmentSlot, RefNmsItemStack>getSlotItems(RefEntityLiving entity)native RefRaritygetRarity()native intgetMinLevel()native intgetMaxLevel()native intgetMinCost(int level)native intgetMaxCost(int level)native intgetDamageProtection(int level, RefDamageSource source)native floatgetDamageBonus(int level, RefMobType group)native booleanisCompatibleWith(RefEnchantment other)native StringgetDescriptionId()native RefComponentgetFullname(int level)native booleancanEnchant(RefNmsItemStack stack)native voiddoPostAttack(RefEntityLiving user, RefEntity target, int level)native voiddoPostHurt(RefEntityLiving user, RefEntity target, int level)native booleanisTreasureOnly()native booleanisCurse()native booleanisTradeable()native booleanisDiscoverable()-
-
Method Detail
-
getSlotItems
native Map<RefEquipmentSlot, RefNmsItemStack> getSlotItems(RefEntityLiving entity)
-
getMinLevel
native int getMinLevel()
-
getMaxLevel
native int getMaxLevel()
-
getMinCost
native int getMinCost(int level)
-
getMaxCost
native int getMaxCost(int level)
-
getDamageProtection
native int getDamageProtection(int level, RefDamageSource source)
-
getDamageBonus
native float getDamageBonus(int level, RefMobType group)
-
isCompatibleWith
native boolean isCompatibleWith(RefEnchantment other)
-
getDescriptionId
native String getDescriptionId()
-
getFullname
native RefComponent getFullname(int level)
-
canEnchant
native boolean canEnchant(RefNmsItemStack stack)
-
doPostAttack
native void doPostAttack(RefEntityLiving user, RefEntity target, int level)
-
doPostHurt
native void doPostHurt(RefEntityLiving user, RefEntity target, int level)
-
isTreasureOnly
native boolean isTreasureOnly()
-
isCurse
native boolean isCurse()
-
isTradeable
native boolean isTradeable()
-
isDiscoverable
native boolean isDiscoverable()
-
-
-
-