Enum Class MinecraftClient.ChatRestriction

java.lang.Object
java.lang.Enum<MinecraftClient.ChatRestriction>
net.minecraft.client.MinecraftClient.ChatRestriction
All Implemented Interfaces:
Serializable, Comparable<MinecraftClient.ChatRestriction>, Constable
Enclosing class:
MinecraftClient

@Environment(CLIENT) public static enum MinecraftClient.ChatRestriction extends Enum<MinecraftClient.ChatRestriction>
Represents the restrictions on chat on a Minecraft client.
See Also:
Mappings:
Namespace Name
named net/minecraft/client/MinecraftClient$ChatRestriction
intermediary net/minecraft/class_310$class_5859
official ffg$a
  • Enum Constant Details

    • ENABLED

      public static final MinecraftClient.ChatRestriction ENABLED
      Mappings:
      Namespace Name Mixin selector
      named ENABLED Lnet/minecraft/client/MinecraftClient$ChatRestriction;ENABLED:Lnet/minecraft/client/MinecraftClient$ChatRestriction;
      intermediary field_28940 Lnet/minecraft/class_310$class_5859;field_28940:Lnet/minecraft/class_310$class_5859;
      official a Lffg$a;a:Lffg$a;
    • DISABLED_BY_OPTIONS

      public static final MinecraftClient.ChatRestriction DISABLED_BY_OPTIONS
      Mappings:
      Namespace Name Mixin selector
      named DISABLED_BY_OPTIONS Lnet/minecraft/client/MinecraftClient$ChatRestriction;DISABLED_BY_OPTIONS:Lnet/minecraft/client/MinecraftClient$ChatRestriction;
      intermediary field_28941 Lnet/minecraft/class_310$class_5859;field_28941:Lnet/minecraft/class_310$class_5859;
      official b Lffg$a;b:Lffg$a;
    • DISABLED_BY_LAUNCHER

      public static final MinecraftClient.ChatRestriction DISABLED_BY_LAUNCHER
      Mappings:
      Namespace Name Mixin selector
      named DISABLED_BY_LAUNCHER Lnet/minecraft/client/MinecraftClient$ChatRestriction;DISABLED_BY_LAUNCHER:Lnet/minecraft/client/MinecraftClient$ChatRestriction;
      intermediary field_28942 Lnet/minecraft/class_310$class_5859;field_28942:Lnet/minecraft/class_310$class_5859;
      official c Lffg$a;c:Lffg$a;
    • DISABLED_BY_PROFILE

      public static final MinecraftClient.ChatRestriction DISABLED_BY_PROFILE
      Mappings:
      Namespace Name Mixin selector
      named DISABLED_BY_PROFILE Lnet/minecraft/client/MinecraftClient$ChatRestriction;DISABLED_BY_PROFILE:Lnet/minecraft/client/MinecraftClient$ChatRestriction;
      intermediary field_28943 Lnet/minecraft/class_310$class_5859;field_28943:Lnet/minecraft/class_310$class_5859;
      official d Lffg$a;d:Lffg$a;
  • Field Details

    • MORE_INFO_TEXT

      static final Text MORE_INFO_TEXT
      Mappings:
      Namespace Name Mixin selector
      named MORE_INFO_TEXT Lnet/minecraft/client/MinecraftClient$ChatRestriction;MORE_INFO_TEXT:Lnet/minecraft/text/Text;
      intermediary field_39456 Lnet/minecraft/class_310$class_5859;field_39456:Lnet/minecraft/class_2561;
      official e Lffg$a;e:Lxp;
    • description

      private final Text description
      Mappings:
      Namespace Name Mixin selector
      named description Lnet/minecraft/client/MinecraftClient$ChatRestriction;description:Lnet/minecraft/text/Text;
      intermediary field_28944 Lnet/minecraft/class_310$class_5859;field_28944:Lnet/minecraft/class_2561;
      official f Lffg$a;f:Lxp;
  • Constructor Details

    • ChatRestriction

      private ChatRestriction(Text description)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/MinecraftClient$ChatRestriction;<init>(Ljava/lang/String;ILnet/minecraft/text/Text;)V
      intermediary <init> Lnet/minecraft/class_310$class_5859;<init>(Ljava/lang/String;ILnet/minecraft/class_2561;)V
      official <init> Lffg$a;<init>(Ljava/lang/String;ILxp;)V
  • Method Details

    • values

      public static MinecraftClient.ChatRestriction[] 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 MinecraftClient.ChatRestriction 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
      named getDescription Lnet/minecraft/client/MinecraftClient$ChatRestriction;getDescription()Lnet/minecraft/text/Text;
      intermediary method_33885 Lnet/minecraft/class_310$class_5859;method_33885()Lnet/minecraft/class_2561;
      official a Lffg$a;a()Lxp;
    • allowsChat

      public abstract boolean allowsChat(boolean singlePlayer)
      Mappings:
      Namespace Name Mixin selector
      named allowsChat Lnet/minecraft/client/MinecraftClient$ChatRestriction;allowsChat(Z)Z
      intermediary method_33886 Lnet/minecraft/class_310$class_5859;method_33886(Z)Z
      official a Lffg$a;a(Z)Z