Enum ArenaIssuesCheckEvent.IssueType

java.lang.Object
java.lang.Enum<ArenaIssuesCheckEvent.IssueType>
de.marcely.bedwars.api.event.arena.ArenaIssuesCheckEvent.IssueType
All Implemented Interfaces:
Serializable, Comparable<ArenaIssuesCheckEvent.IssueType>, java.lang.constant.Constable
Enclosing class:
ArenaIssuesCheckEvent

public static enum ArenaIssuesCheckEvent.IssueType extends Enum<ArenaIssuesCheckEvent.IssueType>
Represents the type of an issue.
  • Enum Constant Details

  • Method Details

    • values

      public static ArenaIssuesCheckEvent.IssueType[] 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 ArenaIssuesCheckEvent.IssueType 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
    • getMessage

      @Nullable public @Nullable Message getMessage()
      Get the error message that would be displayed using this issue-type.

      It only returns null for PLUGIN.

      Returns:
      The message that'd get displayed. May be null
    • construct

      public ArenaIssuesCheckEvent.Issue construct(@Nullable @Nullable CommandSenderWrapper sender)
      Construct an issue instance from this type.
      Parameters:
      sender - The sender to which this shall be displayed to for auto-translation. May be null
      Returns:
      The issue instance
      Throws:
      IllegalStateException - If done for PLUGIN
    • construct

      public ArenaIssuesCheckEvent.Issue construct(@Nullable @Nullable CommandSenderWrapper sender, @Nullable @Nullable String detail)
      Construct an issue instance from this type.
      Parameters:
      sender - The sender to which this shall be displayed to for auto-translation. May be null
      detail - The optional, additional detail that'd get displayed. May be null
      Returns:
      The issue instance
      Throws:
      IllegalStateException - If done for PLUGIN