枚举 ProtectionEnchantment.Type
- java.lang.Object
-
- java.lang.Enum<ProtectionEnchantment.Type>
-
- net.minecraft.enchantment.ProtectionEnchantment.Type
-
- 所有已实现的接口:
Serializable,Comparable<ProtectionEnchantment.Type>
public static enum ProtectionEnchantment.Type extends Enum<ProtectionEnchantment.Type>
- Mappings:
Namespace Name official bty$aintermediary net/minecraft/class_1900$class_1901named net/minecraft/enchantment/ProtectionEnchantment$Type
-
-
枚举常量概要
枚举常量 枚举常量 说明 ALLEXPLOSIONFALLFIREPROJECTILE
-
字段概要
字段 修饰符和类型 字段 说明 private intbasePowerprivate intpowerPerLevel
-
构造器概要
构造器 限定符 构造器 说明 privateType(int basePower, int powerPerLevel)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 intgetBasePower()intgetPowerPerLevel()static ProtectionEnchantment.TypevalueOf(String name)返回带有指定名称的该类型的枚举常量。static ProtectionEnchantment.Type[]values()按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
-
-
-
枚举常量详细资料
-
ALL
public static final ProtectionEnchantment.Type ALL
- Mappings:
Namespace Name Mixin selector official aLbty$a;a:Lbty$a;intermediary field_9138Lnet/minecraft/class_1900$class_1901;field_9138:Lnet/minecraft/class_1900$class_1901;named ALLLnet/minecraft/enchantment/ProtectionEnchantment$Type;ALL:Lnet/minecraft/enchantment/ProtectionEnchantment$Type;
-
FIRE
public static final ProtectionEnchantment.Type FIRE
- Mappings:
Namespace Name Mixin selector official bLbty$a;b:Lbty$a;intermediary field_9139Lnet/minecraft/class_1900$class_1901;field_9139:Lnet/minecraft/class_1900$class_1901;named FIRELnet/minecraft/enchantment/ProtectionEnchantment$Type;FIRE:Lnet/minecraft/enchantment/ProtectionEnchantment$Type;
-
FALL
public static final ProtectionEnchantment.Type FALL
- Mappings:
Namespace Name Mixin selector official cLbty$a;c:Lbty$a;intermediary field_9140Lnet/minecraft/class_1900$class_1901;field_9140:Lnet/minecraft/class_1900$class_1901;named FALLLnet/minecraft/enchantment/ProtectionEnchantment$Type;FALL:Lnet/minecraft/enchantment/ProtectionEnchantment$Type;
-
EXPLOSION
public static final ProtectionEnchantment.Type EXPLOSION
- Mappings:
Namespace Name Mixin selector official dLbty$a;d:Lbty$a;intermediary field_9141Lnet/minecraft/class_1900$class_1901;field_9141:Lnet/minecraft/class_1900$class_1901;named EXPLOSIONLnet/minecraft/enchantment/ProtectionEnchantment$Type;EXPLOSION:Lnet/minecraft/enchantment/ProtectionEnchantment$Type;
-
PROJECTILE
public static final ProtectionEnchantment.Type PROJECTILE
- Mappings:
Namespace Name Mixin selector official eLbty$a;e:Lbty$a;intermediary field_9142Lnet/minecraft/class_1900$class_1901;field_9142:Lnet/minecraft/class_1900$class_1901;named PROJECTILELnet/minecraft/enchantment/ProtectionEnchantment$Type;PROJECTILE:Lnet/minecraft/enchantment/ProtectionEnchantment$Type;
-
-
字段详细资料
-
basePower
private final int basePower
- Mappings:
Namespace Name Mixin selector official fLbty$a;f:Iintermediary field_9135Lnet/minecraft/class_1900$class_1901;field_9135:Inamed basePowerLnet/minecraft/enchantment/ProtectionEnchantment$Type;basePower:I
-
powerPerLevel
private final int powerPerLevel
- Mappings:
Namespace Name Mixin selector official gLbty$a;g:Iintermediary field_9134Lnet/minecraft/class_1900$class_1901;field_9134:Inamed powerPerLevelLnet/minecraft/enchantment/ProtectionEnchantment$Type;powerPerLevel:I
-
-
构造器详细资料
-
Type
private Type(int basePower, int powerPerLevel)- Mappings:
Namespace Name Mixin selector official <init>Lbty$a;<init>(Ljava/lang/String;III)Vintermediary <init>Lnet/minecraft/class_1900$class_1901;<init>(Ljava/lang/String;III)Vnamed <init>Lnet/minecraft/enchantment/ProtectionEnchantment$Type;<init>(Ljava/lang/String;III)V
-
-
方法详细资料
-
values
public static ProtectionEnchantment.Type[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (ProtectionEnchantment.Type c : ProtectionEnchantment.Type.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
public static ProtectionEnchantment.Type valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
getBasePower
public int getBasePower()
- Mappings:
Namespace Name Mixin selector official aLbty$a;a()Iintermediary method_8240Lnet/minecraft/class_1900$class_1901;method_8240()Inamed getBasePowerLnet/minecraft/enchantment/ProtectionEnchantment$Type;getBasePower()I
-
getPowerPerLevel
public int getPowerPerLevel()
- Mappings:
Namespace Name Mixin selector official bLbty$a;b()Iintermediary method_8239Lnet/minecraft/class_1900$class_1901;method_8239()Inamed getPowerPerLevelLnet/minecraft/enchantment/ProtectionEnchantment$Type;getPowerPerLevel()I
-
-