Package net.minecraft.enchantment
Class ProtectionEnchantment
java.lang.Object
net.minecraft.enchantment.Enchantment
net.minecraft.enchantment.ProtectionEnchantment
- Mappings:
Namespace Name official cypintermediary net/minecraft/class_1900named net/minecraft/enchantment/ProtectionEnchantment
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.enchantment.Enchantment
Enchantment.Cost, Enchantment.Properties -
Field Summary
FieldsFields inherited from class net.minecraft.enchantment.Enchantment
translationKey -
Constructor Summary
ConstructorsConstructorDescriptionProtectionEnchantment(Enchantment.Properties properties, ProtectionEnchantment.Type protectionType) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanAccept(Enchantment other) Returns whether this enchantment can exist on an item stack with theotherenchantment.intgetProtectionAmount(int level, DamageSource source) static doubletransformExplosionKnockback(LivingEntity entity, double velocity) static inttransformFireDuration(LivingEntity entity, int duration) Methods inherited from class net.minecraft.enchantment.Enchantment
byRawId, canCombine, constantCost, getAnvilCost, getApplicableItems, getAttackDamage, getEquipment, getMaxLevel, getMaxPower, getMinLevel, getMinPower, getName, getOrCreateTranslationKey, getRegistryEntry, getTranslationKey, getWeight, isAcceptableItem, isAvailableForEnchantedBookOffer, isAvailableForRandomSelection, isCursed, isPrimaryItem, isTreasure, leveledCost, onTargetDamaged, onUserDamaged, properties, properties
-
Field Details
-
protectionType
- Mappings:
Namespace Name Mixin selector official bLcyp;b:Lcyp$a;intermediary field_9133Lnet/minecraft/class_1900;field_9133:Lnet/minecraft/class_1900$class_1901;named protectionTypeLnet/minecraft/enchantment/ProtectionEnchantment;protectionType:Lnet/minecraft/enchantment/ProtectionEnchantment$Type;
-
-
Constructor Details
-
ProtectionEnchantment
public ProtectionEnchantment(Enchantment.Properties properties, ProtectionEnchantment.Type protectionType) - Mappings:
Namespace Name Mixin selector official <init>Lcyp;<init>(Lcyg$b;Lcyp$a;)Vintermediary <init>Lnet/minecraft/class_1900;<init>(Lnet/minecraft/class_1887$class_9427;Lnet/minecraft/class_1900$class_1901;)Vnamed <init>Lnet/minecraft/enchantment/ProtectionEnchantment;<init>(Lnet/minecraft/enchantment/Enchantment$Properties;Lnet/minecraft/enchantment/ProtectionEnchantment$Type;)V
-
-
Method Details
-
getProtectionAmount
- Overrides:
getProtectionAmountin classEnchantment- Mappings:
Namespace Name Mixin selector official aLcyg;a(ILbqf;)Iintermediary method_8181Lnet/minecraft/class_1887;method_8181(ILnet/minecraft/class_1282;)Inamed getProtectionAmountLnet/minecraft/enchantment/Enchantment;getProtectionAmount(ILnet/minecraft/entity/damage/DamageSource;)I
-
canAccept
Returns whether this enchantment can exist on an item stack with theotherenchantment.- Overrides:
canAcceptin classEnchantment- Returns:
- whether this enchantment can exist on an item stack with the
otherenchantment - Mappings:
Namespace Name Mixin selector official aLcyg;a(Lcyg;)Zintermediary method_8180Lnet/minecraft/class_1887;method_8180(Lnet/minecraft/class_1887;)Znamed canAcceptLnet/minecraft/enchantment/Enchantment;canAccept(Lnet/minecraft/enchantment/Enchantment;)Z
-
transformFireDuration
- Mappings:
Namespace Name Mixin selector official aLcyp;a(Lbsa;I)Iintermediary method_8238Lnet/minecraft/class_1900;method_8238(Lnet/minecraft/class_1309;I)Inamed transformFireDurationLnet/minecraft/enchantment/ProtectionEnchantment;transformFireDuration(Lnet/minecraft/entity/LivingEntity;I)I
-
transformExplosionKnockback
- Mappings:
Namespace Name Mixin selector official aLcyp;a(Lbsa;D)Dintermediary method_8237Lnet/minecraft/class_1900;method_8237(Lnet/minecraft/class_1309;D)Dnamed transformExplosionKnockbackLnet/minecraft/enchantment/ProtectionEnchantment;transformExplosionKnockback(Lnet/minecraft/entity/LivingEntity;D)D
-