Enum Class DisplaySlot

java.lang.Object
java.lang.Enum<DisplaySlot>
net.minecraft.world.scores.DisplaySlot
All Implemented Interfaces:
Serializable, Comparable<DisplaySlot>, Constable, StringRepresentable

public enum DisplaySlot extends Enum<DisplaySlot> implements StringRepresentable
  • Enum Constant Details

    • LIST

      public static final DisplaySlot LIST
    • BELOW_NAME

      public static final DisplaySlot BELOW_NAME
    • TEAM_BLACK

      public static final DisplaySlot TEAM_BLACK
    • TEAM_DARK_BLUE

      public static final DisplaySlot TEAM_DARK_BLUE
    • TEAM_DARK_GREEN

      public static final DisplaySlot TEAM_DARK_GREEN
    • TEAM_DARK_AQUA

      public static final DisplaySlot TEAM_DARK_AQUA
    • TEAM_DARK_RED

      public static final DisplaySlot TEAM_DARK_RED
    • TEAM_DARK_PURPLE

      public static final DisplaySlot TEAM_DARK_PURPLE
    • TEAM_GOLD

      public static final DisplaySlot TEAM_GOLD
    • TEAM_GRAY

      public static final DisplaySlot TEAM_GRAY
    • TEAM_DARK_GRAY

      public static final DisplaySlot TEAM_DARK_GRAY
    • TEAM_BLUE

      public static final DisplaySlot TEAM_BLUE
    • TEAM_GREEN

      public static final DisplaySlot TEAM_GREEN
    • TEAM_AQUA

      public static final DisplaySlot TEAM_AQUA
    • TEAM_RED

      public static final DisplaySlot TEAM_RED
    • TEAM_LIGHT_PURPLE

      public static final DisplaySlot TEAM_LIGHT_PURPLE
    • TEAM_YELLOW

      public static final DisplaySlot TEAM_YELLOW
    • TEAM_WHITE

      public static final DisplaySlot TEAM_WHITE
  • Field Details

  • Constructor Details

    • DisplaySlot

      private DisplaySlot(int p_296111_, String p_296101_)
  • Method Details

    • values

      public static DisplaySlot[] 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 DisplaySlot 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
    • id

      public int id()
    • getSerializedName

      public String getSerializedName()
      Specified by:
      getSerializedName in interface StringRepresentable
    • teamColorToSlot

      @Nullable public static DisplaySlot teamColorToSlot(ChatFormatting p_296133_)