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 |
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, onTargetDamagedpublic ThornsEnchantment(Enchantment.Rarity weight, EquipmentSlot[] slotTypes)
public int getMinPower(int level)
getMinPower in class Enchantmentpublic int getMaxPower(int level)
getMaxPower in class Enchantmentpublic int getMaxLevel()
getMaxLevel 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)