public class LootBonusEnchantment extends Enchantment
Enchantment.Rarity
name, type
delegate
修飾子 | コンストラクタと説明 |
---|---|
protected |
LootBonusEnchantment(Enchantment.Rarity rarityIn,
EnchantmentType typeIn,
EquipmentSlotType... slots) |
修飾子とタイプ | メソッドと説明 |
---|---|
boolean |
canApplyTogether(Enchantment ench)
Determines if the enchantment passed can be applyied together with this enchantment.
|
int |
getMaxEnchantability(int enchantmentLevel) |
int |
getMaxLevel()
Returns the maximum level that the enchantment can have.
|
int |
getMinEnchantability(int enchantmentLevel)
Returns the minimal value of enchantability needed on the enchantment level passed.
|
calcDamageByCreature, calcModifierDamage, canApply, canApplyAtEnchantingTable, getDefaultTranslationKey, getDisplayName, getEnchantmentByID, getEntityEquipment, getMinLevel, getName, getRarity, isAllowedOnBooks, isCompatibleWith, isCurse, isTreasureEnchantment, onEntityDamaged, onUserHurt
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
protected LootBonusEnchantment(Enchantment.Rarity rarityIn, EnchantmentType typeIn, EquipmentSlotType... slots)
public int getMinEnchantability(int enchantmentLevel)
getMinEnchantability
クラス内 Enchantment
public int getMaxEnchantability(int enchantmentLevel)
getMaxEnchantability
クラス内 Enchantment
public int getMaxLevel()
getMaxLevel
クラス内 Enchantment
public boolean canApplyTogether(Enchantment ench)
canApplyTogether
クラス内 Enchantment