Enum Class BanReason

java.lang.Object
java.lang.Enum<BanReason>
net.minecraft.client.util.BanReason
All Implemented Interfaces:
Serializable, Comparable<BanReason>, Constable

@Environment(CLIENT) public enum BanReason extends Enum<BanReason>
Mappings:
Namespace Name
official few
intermediary net/minecraft/class_8186
named net/minecraft/client/util/BanReason
  • Enum Constant Details

    • GENERIC_VIOLATION

      public static final BanReason GENERIC_VIOLATION
      Mappings:
      Namespace Name Mixin selector
      official a Lfew;a:Lfew;
      intermediary field_42891 Lnet/minecraft/class_8186;field_42891:Lnet/minecraft/class_8186;
      named GENERIC_VIOLATION Lnet/minecraft/client/util/BanReason;GENERIC_VIOLATION:Lnet/minecraft/client/util/BanReason;
    • FALSE_REPORTING

      public static final BanReason FALSE_REPORTING
      Mappings:
      Namespace Name Mixin selector
      official b Lfew;b:Lfew;
      intermediary field_42892 Lnet/minecraft/class_8186;field_42892:Lnet/minecraft/class_8186;
      named FALSE_REPORTING Lnet/minecraft/client/util/BanReason;FALSE_REPORTING:Lnet/minecraft/client/util/BanReason;
    • HATE_SPEECH

      public static final BanReason HATE_SPEECH
      Mappings:
      Namespace Name Mixin selector
      official c Lfew;c:Lfew;
      intermediary field_42893 Lnet/minecraft/class_8186;field_42893:Lnet/minecraft/class_8186;
      named HATE_SPEECH Lnet/minecraft/client/util/BanReason;HATE_SPEECH:Lnet/minecraft/client/util/BanReason;
    • HATE_TERRORISM_NOTORIOUS_FIGURE

      public static final BanReason HATE_TERRORISM_NOTORIOUS_FIGURE
      Mappings:
      Namespace Name Mixin selector
      official d Lfew;d:Lfew;
      intermediary field_42894 Lnet/minecraft/class_8186;field_42894:Lnet/minecraft/class_8186;
      named HATE_TERRORISM_NOTORIOUS_FIGURE Lnet/minecraft/client/util/BanReason;HATE_TERRORISM_NOTORIOUS_FIGURE:Lnet/minecraft/client/util/BanReason;
    • HARASSMENT_OR_BULLYING

      public static final BanReason HARASSMENT_OR_BULLYING
      Mappings:
      Namespace Name Mixin selector
      official e Lfew;e:Lfew;
      intermediary field_42895 Lnet/minecraft/class_8186;field_42895:Lnet/minecraft/class_8186;
      named HARASSMENT_OR_BULLYING Lnet/minecraft/client/util/BanReason;HARASSMENT_OR_BULLYING:Lnet/minecraft/client/util/BanReason;
    • DEFAMATION_IMPERSONATION_FALSE_INFORMATION

      public static final BanReason DEFAMATION_IMPERSONATION_FALSE_INFORMATION
      Mappings:
      Namespace Name Mixin selector
      official f Lfew;f:Lfew;
      intermediary field_42896 Lnet/minecraft/class_8186;field_42896:Lnet/minecraft/class_8186;
      named DEFAMATION_IMPERSONATION_FALSE_INFORMATION Lnet/minecraft/client/util/BanReason;DEFAMATION_IMPERSONATION_FALSE_INFORMATION:Lnet/minecraft/client/util/BanReason;
    • DRUGS

      public static final BanReason DRUGS
      Mappings:
      Namespace Name Mixin selector
      official g Lfew;g:Lfew;
      intermediary field_42897 Lnet/minecraft/class_8186;field_42897:Lnet/minecraft/class_8186;
      named DRUGS Lnet/minecraft/client/util/BanReason;DRUGS:Lnet/minecraft/client/util/BanReason;
    • FRAUD

      public static final BanReason FRAUD
      Mappings:
      Namespace Name Mixin selector
      official h Lfew;h:Lfew;
      intermediary field_42898 Lnet/minecraft/class_8186;field_42898:Lnet/minecraft/class_8186;
      named FRAUD Lnet/minecraft/client/util/BanReason;FRAUD:Lnet/minecraft/client/util/BanReason;
    • SPAM_OR_ADVERTISING

      public static final BanReason SPAM_OR_ADVERTISING
      Mappings:
      Namespace Name Mixin selector
      official i Lfew;i:Lfew;
      intermediary field_42899 Lnet/minecraft/class_8186;field_42899:Lnet/minecraft/class_8186;
      named SPAM_OR_ADVERTISING Lnet/minecraft/client/util/BanReason;SPAM_OR_ADVERTISING:Lnet/minecraft/client/util/BanReason;
    • NUDITY_OR_PORNOGRAPHY

      public static final BanReason NUDITY_OR_PORNOGRAPHY
      Mappings:
      Namespace Name Mixin selector
      official j Lfew;j:Lfew;
      intermediary field_42900 Lnet/minecraft/class_8186;field_42900:Lnet/minecraft/class_8186;
      named NUDITY_OR_PORNOGRAPHY Lnet/minecraft/client/util/BanReason;NUDITY_OR_PORNOGRAPHY:Lnet/minecraft/client/util/BanReason;
    • SEXUALLY_INAPPROPRIATE

      public static final BanReason SEXUALLY_INAPPROPRIATE
      Mappings:
      Namespace Name Mixin selector
      official k Lfew;k:Lfew;
      intermediary field_42901 Lnet/minecraft/class_8186;field_42901:Lnet/minecraft/class_8186;
      named SEXUALLY_INAPPROPRIATE Lnet/minecraft/client/util/BanReason;SEXUALLY_INAPPROPRIATE:Lnet/minecraft/client/util/BanReason;
    • EXTREME_VIOLENCE_OR_GORE

      public static final BanReason EXTREME_VIOLENCE_OR_GORE
      Mappings:
      Namespace Name Mixin selector
      official l Lfew;l:Lfew;
      intermediary field_42902 Lnet/minecraft/class_8186;field_42902:Lnet/minecraft/class_8186;
      named EXTREME_VIOLENCE_OR_GORE Lnet/minecraft/client/util/BanReason;EXTREME_VIOLENCE_OR_GORE:Lnet/minecraft/client/util/BanReason;
    • IMMINENT_HARM_TO_PERSON_OR_PROPERTY

      public static final BanReason IMMINENT_HARM_TO_PERSON_OR_PROPERTY
      Mappings:
      Namespace Name Mixin selector
      official m Lfew;m:Lfew;
      intermediary field_42903 Lnet/minecraft/class_8186;field_42903:Lnet/minecraft/class_8186;
      named IMMINENT_HARM_TO_PERSON_OR_PROPERTY Lnet/minecraft/client/util/BanReason;IMMINENT_HARM_TO_PERSON_OR_PROPERTY:Lnet/minecraft/client/util/BanReason;
  • Field Details

    • description

      private final Text description
      Mappings:
      Namespace Name Mixin selector
      official n Lfew;n:Lsw;
      intermediary field_42904 Lnet/minecraft/class_8186;field_42904:Lnet/minecraft/class_2561;
      named description Lnet/minecraft/client/util/BanReason;description:Lnet/minecraft/text/Text;
  • Constructor Details

    • BanReason

      private BanReason(String id)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfew;<init>(Ljava/lang/String;ILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_8186;<init>(Ljava/lang/String;ILjava/lang/String;)V
      named <init> Lnet/minecraft/client/util/BanReason;<init>(Ljava/lang/String;ILjava/lang/String;)V
  • Method Details

    • values

      public static BanReason[] 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 BanReason 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
    • getDescription

      public Text getDescription()
      Mappings:
      Namespace Name Mixin selector
      official a Lfew;a()Lsw;
      intermediary method_49312 Lnet/minecraft/class_8186;method_49312()Lnet/minecraft/class_2561;
      named getDescription Lnet/minecraft/client/util/BanReason;getDescription()Lnet/minecraft/text/Text;
    • byId

      @Nullable public static @Nullable BanReason byId(int id)
      Mappings:
      Namespace Name Mixin selector
      official a Lfew;a(I)Lfew;
      intermediary method_49313 Lnet/minecraft/class_8186;method_49313(I)Lnet/minecraft/class_8186;
      named byId Lnet/minecraft/client/util/BanReason;byId(I)Lnet/minecraft/client/util/BanReason;