Class RefEnchantment
-
- All Implemented Interfaces:
public abstract class RefEnchantment
-
-
Field Summary
Fields Modifier and Type Field Description public final RefEquipmentSlot
slots
public final RefEnchantmentCategory
category
-
Method Summary
Modifier and Type Method Description native Map<RefEquipmentSlot, RefNmsItemStack>
getSlotItems(RefEntityLiving entity)
native RefRarity
getRarity()
native int
getMinLevel()
native int
getMaxLevel()
native int
getMinCost(int level)
native int
getMaxCost(int level)
native int
getDamageProtection(int level, RefDamageSource source)
native float
getDamageBonus(int level, RefMobType group)
native boolean
isCompatibleWith(RefEnchantment other)
native String
getDescriptionId()
native RefComponent
getFullname(int level)
native boolean
canEnchant(RefNmsItemStack stack)
native void
doPostAttack(RefEntityLiving user, RefEntity target, int level)
native void
doPostHurt(RefEntityLiving user, RefEntity target, int level)
native boolean
isTreasureOnly()
native boolean
isCurse()
native boolean
isTradeable()
native boolean
isDiscoverable()
-
-
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()
-
-
-
-