Enum Class AttackIndicator

java.lang.Object
java.lang.Enum<AttackIndicator>
xyz.gmitch215.socketmc.util.option.AttackIndicator
All Implemented Interfaces:
Serializable, Comparable<AttackIndicator>, Constable

public enum AttackIndicator extends Enum<AttackIndicator>
Represents the status of the attack indicator.
  • Enum Constant Details

    • OFF

      public static final AttackIndicator OFF
      The attack indicator is disabled.
    • CROSSHAIR

      public static final AttackIndicator CROSSHAIR
      The attack indicator is displayed in the crosshair.
    • HOTBAR

      public static final AttackIndicator HOTBAR
      The attack indicator is displayed in the hotbar.
  • Method Details

    • values

      public static AttackIndicator[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AttackIndicator valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • byOrdinal

      @NotNull public static @NotNull AttackIndicator byOrdinal(int ordinal)
      Gets the AttackIndicator by its ordinal.
      Parameters:
      ordinal -
      Returns:
      AttackIndicator by ordinal