Package net.minecraft.enchantment
Enum ProtectionEnchantment.Type
- All Implemented Interfaces:
Serializable,Comparable<ProtectionEnchantment.Type>,java.lang.constant.Constable
- Enclosing class:
- ProtectionEnchantment
public static enum ProtectionEnchantment.Type extends Enum<ProtectionEnchantment.Type>
- Mappings:
Namespace Name official bsc$aintermediary net/minecraft/class_1900$class_1901named net/minecraft/enchantment/ProtectionEnchantment$Type
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants Enum Constant Description ALLEXPLOSIONFALLFIREPROJECTILE -
Field Summary
Fields Modifier and Type Field Description private intbasePowerprivate intpowerPerLevel -
Constructor Summary
Constructors Modifier Constructor Description privateType(int int2, int int3) -
Method Summary
Modifier and Type Method Description intgetBasePower()intgetPowerPerLevel()static ProtectionEnchantment.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static ProtectionEnchantment.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ALL
- Mappings:
Namespace Name Mixin selector official aLbsc$a;a:Lbsc$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
- Mappings:
Namespace Name Mixin selector official bLbsc$a;b:Lbsc$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
- Mappings:
Namespace Name Mixin selector official cLbsc$a;c:Lbsc$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
- Mappings:
Namespace Name Mixin selector official dLbsc$a;d:Lbsc$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
- Mappings:
Namespace Name Mixin selector official eLbsc$a;e:Lbsc$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;
-
-
Field Details
-
basePower
private final int basePower- Mappings:
Namespace Name Mixin selector official fLbsc$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 gLbsc$a;g:Iintermediary field_9134Lnet/minecraft/class_1900$class_1901;field_9134:Inamed powerPerLevelLnet/minecraft/enchantment/ProtectionEnchantment$Type;powerPerLevel:I
-
-
Constructor Details
-
Type
private Type(int int2, int int3)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getBasePower
public int getBasePower()- Mappings:
Namespace Name Mixin selector official aLbsc$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 bLbsc$a;b()Iintermediary method_8239Lnet/minecraft/class_1900$class_1901;method_8239()Inamed getPowerPerLevelLnet/minecraft/enchantment/ProtectionEnchantment$Type;getPowerPerLevel()I
-