Package net.minecraft.enchantment
Class ProtectionEnchantment
java.lang.Object
net.minecraft.enchantment.Enchantment
net.minecraft.enchantment.ProtectionEnchantment
- Mappings:
- Namespace - Name - official - ckt- intermediary - net/minecraft/class_1900- named - net/minecraft/enchantment/ProtectionEnchantment
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class net.minecraft.enchantment.EnchantmentEnchantment.Rarity
- 
Field SummaryFieldsFields inherited from class net.minecraft.enchantment.Enchantmenttarget, translationKey
- 
Constructor SummaryConstructorsConstructorDescriptionProtectionEnchantment(Enchantment.Rarity weight, ProtectionEnchantment.Type protectionType, EquipmentSlot[] slotTypes) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanAccept(Enchantment other) Returns whether this enchantment can exist on an item stack with theotherenchantment.intintgetMaxPower(int level) intgetMinPower(int level) intgetProtectionAmount(int level, DamageSource source) static doubletransformExplosionKnockback(LivingEntity entity, double velocity) static inttransformFireDuration(LivingEntity entity, int duration) Methods inherited from class net.minecraft.enchantment.EnchantmentbyRawId, 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- Lckt;a:Lckt$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- 
ProtectionEnchantmentpublic ProtectionEnchantment(Enchantment.Rarity weight, ProtectionEnchantment.Type protectionType, EquipmentSlot[] slotTypes) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lckt;<init>(Lckg$a;Lckt$a;[Lbfo;)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- 
getMinPowerpublic int getMinPower(int level) - Overrides:
- getMinPowerin class- Enchantment
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lckg;a(I)I- intermediary - method_8182- Lnet/minecraft/class_1887;method_8182(I)I- named - getMinPower- Lnet/minecraft/enchantment/Enchantment;getMinPower(I)I
 
- 
getMaxPowerpublic int getMaxPower(int level) - Overrides:
- getMaxPowerin class- Enchantment
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lckg;b(I)I- intermediary - method_20742- Lnet/minecraft/class_1887;method_20742(I)I- named - getMaxPower- Lnet/minecraft/enchantment/Enchantment;getMaxPower(I)I
 
- 
getMaxLevelpublic int getMaxLevel()- Overrides:
- getMaxLevelin class- Enchantment
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lckg;a()I- intermediary - method_8183- Lnet/minecraft/class_1887;method_8183()I- named - getMaxLevel- Lnet/minecraft/enchantment/Enchantment;getMaxLevel()I
 
- 
getProtectionAmount- Overrides:
- getProtectionAmountin class- Enchantment
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lckg;a(ILben;)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
 
- 
canAcceptReturns whether this enchantment can exist on an item stack with theotherenchantment.- Overrides:
- canAcceptin class- Enchantment
- Returns:
- whether this enchantment can exist on an item stack with the
 otherenchantment
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lckg;a(Lckg;)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- Lckt;a(Lbfz;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- Lckt;a(Lbfz;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
 
 
-