Package net.minecraft.enchantment
Class ProtectionEnchantment
java.lang.Object
net.minecraft.enchantment.Enchantment
net.minecraft.enchantment.ProtectionEnchantment
- Mappings:
Namespace Name official ckp
intermediary net/minecraft/class_1900
named net/minecraft/enchantment/ProtectionEnchantment
-
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
target, translationKey
-
Constructor Summary
ConstructorDescriptionProtectionEnchantment
(Enchantment.Rarity weight, ProtectionEnchantment.Type protectionType, EquipmentSlot[] slotTypes) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canAccept
(Enchantment other) Returns whether this enchantment can exist on an item stack with theother
enchantment.int
int
getMaxPower
(int level) int
getMinPower
(int level) int
getProtectionAmount
(int level, DamageSource source) static double
transformExplosionKnockback
(LivingEntity entity, double velocity) static int
transformFireDuration
(LivingEntity entity, int duration) Methods inherited from class net.minecraft.enchantment.Enchantment
byRawId, canCombine, getAttackDamage, getEquipment, getMinLevel, getName, getOrCreateTranslationKey, getRarity, getTranslationKey, isAcceptableItem, isAvailableForEnchantedBookOffer, isAvailableForRandomSelection, isCursed, isTreasure, onTargetDamaged, onUserDamaged
-
Field Details
-
protectionType
- Mappings:
Namespace Name Mixin selector official a
Lckp;a:Lckp$a;
intermediary field_9133
Lnet/minecraft/class_1900;field_9133:Lnet/minecraft/class_1900$class_1901;
named protectionType
Lnet/minecraft/enchantment/ProtectionEnchantment;protectionType:Lnet/minecraft/enchantment/ProtectionEnchantment$Type;
-
-
Constructor Details
-
ProtectionEnchantment
public ProtectionEnchantment(Enchantment.Rarity weight, ProtectionEnchantment.Type protectionType, EquipmentSlot[] slotTypes) - Mappings:
Namespace Name Mixin selector official <init>
Lckp;<init>(Lckc$a;Lckp$a;[Lbfm;)V
intermediary <init>
Lnet/minecraft/class_1900;<init>(Lnet/minecraft/class_1887$class_1888;Lnet/minecraft/class_1900$class_1901;[Lnet/minecraft/class_1304;)V
named <init>
Lnet/minecraft/enchantment/ProtectionEnchantment;<init>(Lnet/minecraft/enchantment/Enchantment$Rarity;Lnet/minecraft/enchantment/ProtectionEnchantment$Type;[Lnet/minecraft/entity/EquipmentSlot;)V
-
-
Method Details
-
getMinPower
public int getMinPower(int level) - Overrides:
getMinPower
in classEnchantment
- Mappings:
Namespace Name Mixin selector official a
Lckc;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
Lckc;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
Lckc;a()I
intermediary method_8183
Lnet/minecraft/class_1887;method_8183()I
named getMaxLevel
Lnet/minecraft/enchantment/Enchantment;getMaxLevel()I
-
getProtectionAmount
- Overrides:
getProtectionAmount
in classEnchantment
- Mappings:
Namespace Name Mixin selector official a
Lckc;a(ILbem;)I
intermediary method_8181
Lnet/minecraft/class_1887;method_8181(ILnet/minecraft/class_1282;)I
named getProtectionAmount
Lnet/minecraft/enchantment/Enchantment;getProtectionAmount(ILnet/minecraft/entity/damage/DamageSource;)I
-
canAccept
Returns whether this enchantment can exist on an item stack with theother
enchantment.- Overrides:
canAccept
in classEnchantment
- Returns:
- whether this enchantment can exist on an item stack with the
other
enchantment - Mappings:
Namespace Name Mixin selector official a
Lckc;a(Lckc;)Z
intermediary method_8180
Lnet/minecraft/class_1887;method_8180(Lnet/minecraft/class_1887;)Z
named canAccept
Lnet/minecraft/enchantment/Enchantment;canAccept(Lnet/minecraft/enchantment/Enchantment;)Z
-
transformFireDuration
- Mappings:
Namespace Name Mixin selector official a
Lckp;a(Lbfx;I)I
intermediary method_8238
Lnet/minecraft/class_1900;method_8238(Lnet/minecraft/class_1309;I)I
named transformFireDuration
Lnet/minecraft/enchantment/ProtectionEnchantment;transformFireDuration(Lnet/minecraft/entity/LivingEntity;I)I
-
transformExplosionKnockback
- Mappings:
Namespace Name Mixin selector official a
Lckp;a(Lbfx;D)D
intermediary method_8237
Lnet/minecraft/class_1900;method_8237(Lnet/minecraft/class_1309;D)D
named transformExplosionKnockback
Lnet/minecraft/enchantment/ProtectionEnchantment;transformExplosionKnockback(Lnet/minecraft/entity/LivingEntity;D)D
-