public class ThornsEnchantment extends Enchantment
Enchantment.Rarity
translationKey, type
Constructor and Description |
---|
ThornsEnchantment(Enchantment.Rarity weight,
EquipmentSlot[] slotTypes) |
Modifier and Type | Method and Description |
---|---|
static int |
getDamageAmount(int level,
Random random) |
int |
getMaxLevel() |
int |
getMaxPower(int level) |
int |
getMinPower(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, getMinLevel, getName, getOrCreateTranslationKey, getProtectionAmount, getRarity, getTranslationKey, isAvailableForEnchantedBookOffer, isAvailableForRandomSelection, isCursed, isTreasure, onTargetDamaged
public ThornsEnchantment(Enchantment.Rarity weight, EquipmentSlot[] slotTypes)
public int getMinPower(int level)
getMinPower
in class Enchantment
public int getMaxPower(int level)
getMaxPower
in class Enchantment
public int getMaxLevel()
getMaxLevel
in class Enchantment
public boolean isAcceptableItem(ItemStack stack)
isAcceptableItem
in class Enchantment
public void onUserDamaged(LivingEntity user, Entity attacker, int level)
onUserDamaged
in class Enchantment
public static boolean shouldDamageAttacker(int level, Random random)
public static int getDamageAmount(int level, Random random)