Enum DamageEnchantmentTarget

java.lang.Object
java.lang.Enum<DamageEnchantmentTarget>
net.minecraft.enchantment.DamageEnchantmentTarget
All Implemented Interfaces:
Serializable, Comparable<DamageEnchantmentTarget>, java.lang.constant.Constable

public enum DamageEnchantmentTarget
extends Enum<DamageEnchantmentTarget>
Mappings:
Namespace Name
official pw
intermediary net/minecraft/class_1758
named net/minecraft/enchantment/DamageEnchantmentTarget
  • Enum Constant Details

    • ALL

      public static final DamageEnchantmentTarget ALL
      Mappings:
      Namespace Name Mixin selector
      official a Lpw;a:Lpw;
      intermediary field_7525 Lnet/minecraft/class_1758;field_7525:Lnet/minecraft/class_1758;
      named ALL Lnet/minecraft/enchantment/DamageEnchantmentTarget;ALL:Lnet/minecraft/enchantment/DamageEnchantmentTarget;
    • UNDEAD

      public static final DamageEnchantmentTarget UNDEAD
      Mappings:
      Namespace Name Mixin selector
      official b Lpw;b:Lpw;
      intermediary field_7526 Lnet/minecraft/class_1758;field_7526:Lnet/minecraft/class_1758;
      named UNDEAD Lnet/minecraft/enchantment/DamageEnchantmentTarget;UNDEAD:Lnet/minecraft/enchantment/DamageEnchantmentTarget;
    • ARTHROPOD

      public static final DamageEnchantmentTarget ARTHROPOD
      Mappings:
      Namespace Name Mixin selector
      official c Lpw;c:Lpw;
      intermediary field_7527 Lnet/minecraft/class_1758;field_7527:Lnet/minecraft/class_1758;
      named ARTHROPOD Lnet/minecraft/enchantment/DamageEnchantmentTarget;ARTHROPOD:Lnet/minecraft/enchantment/DamageEnchantmentTarget;
  • Constructor Details

    • DamageEnchantmentTarget

      private DamageEnchantmentTarget()
  • Method Details

    • values

      public static DamageEnchantmentTarget[] 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

      public static DamageEnchantmentTarget valueOf​(String name)
      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 name
      NullPointerException - if the argument is null