Package net.minecraft.enchantment
Class ThornsEnchantment
java.lang.Object
net.minecraft.enchantment.Enchantment
net.minecraft.enchantment.ThornsEnchantment
public class ThornsEnchantment extends Enchantment
- Mappings:
Namespace Name official bsg
intermediary net/minecraft/class_1906
named net/minecraft/enchantment/ThornsEnchantment
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.enchantment.Enchantment
Enchantment.Rarity
-
Field Summary
Fields inherited from class net.minecraft.enchantment.Enchantment
translationKey, type
-
Constructor Summary
Constructors Constructor Description ThornsEnchantment(Enchantment.Rarity weight, EquipmentSlot[] slotTypes)
-
Method Summary
Modifier and Type Method 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)
Methods inherited from class net.minecraft.enchantment.Enchantment
byRawId, canAccept, canCombine, getAttackDamage, getEquipment, getMinLevel, getName, getOrCreateTranslationKey, getProtectionAmount, getRarity, getTranslationKey, isAvailableForEnchantedBookOffer, isAvailableForRandomSelection, isCursed, isTreasure, onTargetDamaged
-
Constructor Details
-
ThornsEnchantment
- Mappings:
Namespace Name Mixin selector official <init>
Lbsg;<init>(Lbrp$a;[Lara;)V
intermediary <init>
Lnet/minecraft/class_1906;<init>(Lnet/minecraft/class_1887$class_1888;[Lnet/minecraft/class_1304;)V
named <init>
Lnet/minecraft/enchantment/ThornsEnchantment;<init>(Lnet/minecraft/enchantment/Enchantment$Rarity;[Lnet/minecraft/entity/EquipmentSlot;)V
-
-
Method Details
-
getMinPower
public int getMinPower(int level)- Overrides:
getMinPower
in classEnchantment
- Mappings:
Namespace Name Mixin selector official a
Lbrp;a(I)I
intermediary method_8182
Lnet/minecraft/class_1887;method_8182(I)I
named getMinPower
Lnet/minecraft/enchantment/Enchantment;getMinPower(I)I
-
getMaxPower
public int getMaxPower(int level)- Overrides:
getMaxPower
in classEnchantment
- Mappings:
Namespace Name Mixin selector official b
Lbrp;b(I)I
intermediary method_20742
Lnet/minecraft/class_1887;method_20742(I)I
named getMaxPower
Lnet/minecraft/enchantment/Enchantment;getMaxPower(I)I
-
getMaxLevel
public int getMaxLevel()- Overrides:
getMaxLevel
in classEnchantment
- Mappings:
Namespace Name Mixin selector official a
Lbrp;a()I
intermediary method_8183
Lnet/minecraft/class_1887;method_8183()I
named getMaxLevel
Lnet/minecraft/enchantment/Enchantment;getMaxLevel()I
-
isAcceptableItem
- Overrides:
isAcceptableItem
in classEnchantment
- Mappings:
Namespace Name Mixin selector official a
Lbrp;a(Lbnv;)Z
intermediary method_8192
Lnet/minecraft/class_1887;method_8192(Lnet/minecraft/class_1799;)Z
named isAcceptableItem
Lnet/minecraft/enchantment/Enchantment;isAcceptableItem(Lnet/minecraft/item/ItemStack;)Z
-
onUserDamaged
- Overrides:
onUserDamaged
in classEnchantment
- Mappings:
Namespace Name Mixin selector official b
Lbrp;b(Lari;Laqv;I)V
intermediary method_8178
Lnet/minecraft/class_1887;method_8178(Lnet/minecraft/class_1309;Lnet/minecraft/class_1297;I)V
named onUserDamaged
Lnet/minecraft/enchantment/Enchantment;onUserDamaged(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/Entity;I)V
-
shouldDamageAttacker
- Mappings:
Namespace Name Mixin selector official a
Lbsg;a(ILjava/util/Random;)Z
intermediary method_8243
Lnet/minecraft/class_1906;method_8243(ILjava/util/Random;)Z
named shouldDamageAttacker
Lnet/minecraft/enchantment/ThornsEnchantment;shouldDamageAttacker(ILjava/util/Random;)Z
-
getDamageAmount
- Mappings:
Namespace Name Mixin selector official b
Lbsg;b(ILjava/util/Random;)I
intermediary method_8242
Lnet/minecraft/class_1906;method_8242(ILjava/util/Random;)I
named getDamageAmount
Lnet/minecraft/enchantment/ThornsEnchantment;getDamageAmount(ILjava/util/Random;)I
-