类 ProtectionEnchantment
- java.lang.Object
-
- net.minecraft.enchantment.Enchantment
-
- net.minecraft.enchantment.ProtectionEnchantment
-
public class ProtectionEnchantment extends Enchantment
- Mappings:
Namespace Name official btyintermediary net/minecraft/class_1900named net/minecraft/enchantment/ProtectionEnchantment
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classProtectionEnchantment.Type-
从类继承的嵌套类/接口 net.minecraft.enchantment.Enchantment
Enchantment.Rarity
-
-
字段概要
字段 修饰符和类型 字段 说明 ProtectionEnchantment.TypeprotectionType-
从类继承的字段 net.minecraft.enchantment.Enchantment
translationKey, type
-
-
构造器概要
构造器 构造器 说明 ProtectionEnchantment(Enchantment.Rarity weight, ProtectionEnchantment.Type protectionType, EquipmentSlot[] slotTypes)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 booleancanAccept(Enchantment other)Returns whether this enchantment can exist on an item stack with theotherenchantment.intgetMaxLevel()intgetMaxPower(int level)intgetMinPower(int level)intgetProtectionAmount(int level, DamageSource source)static doubletransformExplosionKnockback(LivingEntity entity, double velocity)static inttransformFireDuration(LivingEntity entity, int duration)-
从类继承的方法 net.minecraft.enchantment.Enchantment
byRawId, canCombine, getAttackDamage, getEquipment, getMinLevel, getName, getOrCreateTranslationKey, getRarity, getTranslationKey, isAcceptableItem, isAvailableForEnchantedBookOffer, isAvailableForRandomSelection, isCursed, isTreasure, onTargetDamaged, onUserDamaged
-
-
-
-
字段详细资料
-
protectionType
public final ProtectionEnchantment.Type protectionType
- Mappings:
Namespace Name Mixin selector official aLbty;a:Lbty$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;
-
-
构造器详细资料
-
ProtectionEnchantment
public ProtectionEnchantment(Enchantment.Rarity weight, ProtectionEnchantment.Type protectionType, EquipmentSlot[] slotTypes)
- Mappings:
Namespace Name Mixin selector official <init>Lbty;<init>(Lbtl$a;Lbty$a;[Lasq;)Vintermediary <init>Lnet/minecraft/class_1900;<init>(Lnet/minecraft/class_1887$class_1888;Lnet/minecraft/class_1900$class_1901;[Lnet/minecraft/class_1304;)Vnamed <init>Lnet/minecraft/enchantment/ProtectionEnchantment;<init>(Lnet/minecraft/enchantment/Enchantment$Rarity;Lnet/minecraft/enchantment/ProtectionEnchantment$Type;[Lnet/minecraft/entity/EquipmentSlot;)V
-
-
方法详细资料
-
getMinPower
public int getMinPower(int level)
- 覆盖:
getMinPower在类中Enchantment- Mappings:
Namespace Name Mixin selector official aLbtl;a(I)Iintermediary method_8182Lnet/minecraft/class_1887;method_8182(I)Inamed getMinPowerLnet/minecraft/enchantment/Enchantment;getMinPower(I)I
-
getMaxPower
public int getMaxPower(int level)
- 覆盖:
getMaxPower在类中Enchantment- Mappings:
Namespace Name Mixin selector official bLbtl;b(I)Iintermediary method_20742Lnet/minecraft/class_1887;method_20742(I)Inamed getMaxPowerLnet/minecraft/enchantment/Enchantment;getMaxPower(I)I
-
getMaxLevel
public int getMaxLevel()
- 覆盖:
getMaxLevel在类中Enchantment- Mappings:
Namespace Name Mixin selector official aLbtl;a()Iintermediary method_8183Lnet/minecraft/class_1887;method_8183()Inamed getMaxLevelLnet/minecraft/enchantment/Enchantment;getMaxLevel()I
-
getProtectionAmount
public int getProtectionAmount(int level, DamageSource source)- 覆盖:
getProtectionAmount在类中Enchantment- Mappings:
Namespace Name Mixin selector official aLbtl;a(ILarv;)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
public boolean canAccept(Enchantment other)
Returns whether this enchantment can exist on an item stack with theotherenchantment.- 覆盖:
canAccept在类中Enchantment- Mappings:
Namespace Name Mixin selector official aLbtl;a(Lbtl;)Zintermediary method_8180Lnet/minecraft/class_1887;method_8180(Lnet/minecraft/class_1887;)Znamed canAcceptLnet/minecraft/enchantment/Enchantment;canAccept(Lnet/minecraft/enchantment/Enchantment;)Z
-
transformFireDuration
public static int transformFireDuration(LivingEntity entity, int duration)
- Mappings:
Namespace Name Mixin selector official aLbty;a(Lasy;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
public static double transformExplosionKnockback(LivingEntity entity, double velocity)
- Mappings:
Namespace Name Mixin selector official aLbty;a(Lasy;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
-
-