public class ThornsEnchantment extends Enchantment
Enchantment.RaritytranslationKey, type| Constructor and Description |
|---|
ThornsEnchantment(Enchantment.Rarity weight,
EquipmentSlot[] slotTypes) |
| Modifier and Type | Method and Description |
|---|---|
static int |
getDamageAmount(int level,
Random random) |
int |
getMaximumLevel() |
int |
getMaximumPower(int level) |
int |
getMinimumPower(int level) |
boolean |
isAcceptableItem(ItemStack stack) |
void |
onUserDamaged(LivingEntity user,
Entity attacker,
int level) |
static boolean |
shouldDamageAttacker(int level,
Random random) |
byRawId, canAccept, canCombine, getAttackDamage, getEquipment, getMinimumLevel, getName, getOrCreateTranslationKey, getProtectionAmount, getRarity, getTranslationKey, isAvailableForEnchantedBookOffer, isAvailableForRandomSelection, isCursed, isTreasure, onTargetDamagedpublic ThornsEnchantment(Enchantment.Rarity weight, EquipmentSlot[] slotTypes)
public int getMinimumPower(int level)
getMinimumPower in class Enchantmentpublic int getMaximumPower(int level)
getMaximumPower in class Enchantmentpublic int getMaximumLevel()
getMaximumLevel in class Enchantmentpublic boolean isAcceptableItem(ItemStack stack)
isAcceptableItem in class Enchantmentpublic void onUserDamaged(LivingEntity user, Entity attacker, int level)
onUserDamaged in class Enchantmentpublic static boolean shouldDamageAttacker(int level,
Random random)
public static int getDamageAmount(int level,
Random random)