Enum Class ReportReason

java.lang.Object
java.lang.Enum<ReportReason>
net.minecraft.client.multiplayer.chat.report.ReportReason
All Implemented Interfaces:
Serializable, Comparable<ReportReason>, Constable

public enum ReportReason extends Enum<ReportReason>
  • Enum Constant Details

    • FALSE_REPORTING

      public static final ReportReason FALSE_REPORTING
    • HATE_SPEECH

      public static final ReportReason HATE_SPEECH
    • TERRORISM_OR_VIOLENT_EXTREMISM

      public static final ReportReason TERRORISM_OR_VIOLENT_EXTREMISM
    • CHILD_SEXUAL_EXPLOITATION_OR_ABUSE

      public static final ReportReason CHILD_SEXUAL_EXPLOITATION_OR_ABUSE
    • IMMINENT_HARM

      public static final ReportReason IMMINENT_HARM
    • NON_CONSENSUAL_INTIMATE_IMAGERY

      public static final ReportReason NON_CONSENSUAL_INTIMATE_IMAGERY
    • HARASSMENT_OR_BULLYING

      public static final ReportReason HARASSMENT_OR_BULLYING
    • DEFAMATION_IMPERSONATION_FALSE_INFORMATION

      public static final ReportReason DEFAMATION_IMPERSONATION_FALSE_INFORMATION
    • SELF_HARM_OR_SUICIDE

      public static final ReportReason SELF_HARM_OR_SUICIDE
    • ALCOHOL_TOBACCO_DRUGS

      public static final ReportReason ALCOHOL_TOBACCO_DRUGS
  • Field Details

    • id

      private final int id
    • backendName

      private final String backendName
    • reportable

      private final boolean reportable
    • title

      private final Component title
    • description

      private final Component description
  • Constructor Details

    • ReportReason

      private ReportReason(int p_242843_, String p_242899_, boolean p_242895_)
  • Method Details

    • values

      public static ReportReason[] 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 ReportReason 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
    • backendName

      public String backendName()
    • title

      public Component title()
    • description

      public Component description()
    • reportable

      public boolean reportable()
    • getTranslationById

      @Nullable public static Component getTranslationById(int p_239750_)