Package net.minecraft.client
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 official eev$aintermediary net/minecraft/class_310$class_5859named net/minecraft/client/MinecraftClient$ChatRestriction
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanallowsChat(boolean singlePlayer) Returns the enum constant of this class with the specified name.static MinecraftClient.ChatRestriction[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ENABLED
- Mappings:
Namespace Name Mixin selector official aLeev$a;a:Leev$a;intermediary field_28940Lnet/minecraft/class_310$class_5859;field_28940:Lnet/minecraft/class_310$class_5859;named ENABLEDLnet/minecraft/client/MinecraftClient$ChatRestriction;ENABLED:Lnet/minecraft/client/MinecraftClient$ChatRestriction;
-
DISABLED_BY_OPTIONS
- Mappings:
Namespace Name Mixin selector official bLeev$a;b:Leev$a;intermediary field_28941Lnet/minecraft/class_310$class_5859;field_28941:Lnet/minecraft/class_310$class_5859;named DISABLED_BY_OPTIONSLnet/minecraft/client/MinecraftClient$ChatRestriction;DISABLED_BY_OPTIONS:Lnet/minecraft/client/MinecraftClient$ChatRestriction;
-
DISABLED_BY_LAUNCHER
- Mappings:
Namespace Name Mixin selector official cLeev$a;c:Leev$a;intermediary field_28942Lnet/minecraft/class_310$class_5859;field_28942:Lnet/minecraft/class_310$class_5859;named DISABLED_BY_LAUNCHERLnet/minecraft/client/MinecraftClient$ChatRestriction;DISABLED_BY_LAUNCHER:Lnet/minecraft/client/MinecraftClient$ChatRestriction;
-
DISABLED_BY_PROFILE
- Mappings:
Namespace Name Mixin selector official dLeev$a;d:Leev$a;intermediary field_28943Lnet/minecraft/class_310$class_5859;field_28943:Lnet/minecraft/class_310$class_5859;named DISABLED_BY_PROFILELnet/minecraft/client/MinecraftClient$ChatRestriction;DISABLED_BY_PROFILE:Lnet/minecraft/client/MinecraftClient$ChatRestriction;
-
-
Field Details
-
field_39456
- Mappings:
Namespace Name Mixin selector official eLeev$a;e:Lrm;intermediary field_39456Lnet/minecraft/class_310$class_5859;field_39456:Lnet/minecraft/class_2561;named field_39456Lnet/minecraft/client/MinecraftClient$ChatRestriction;field_39456:Lnet/minecraft/text/Text;
-
field_39457
- See Also:
- Mappings:
Namespace Name Mixin selector official fLeev$a;f:Ljava/lang/String;intermediary field_39457Lnet/minecraft/class_310$class_5859;field_39457:Ljava/lang/String;named field_39457Lnet/minecraft/client/MinecraftClient$ChatRestriction;field_39457:Ljava/lang/String;
-
description
- Mappings:
Namespace Name Mixin selector official gLeev$a;g:Lrm;intermediary field_28944Lnet/minecraft/class_310$class_5859;field_28944:Lnet/minecraft/class_2561;named descriptionLnet/minecraft/client/MinecraftClient$ChatRestriction;description:Lnet/minecraft/text/Text;
-
-
Constructor Details
-
ChatRestriction
- Mappings:
Namespace Name Mixin selector official <init>Leev$a;<init>(Ljava/lang/String;ILrm;)Vintermediary <init>Lnet/minecraft/class_310$class_5859;<init>(Ljava/lang/String;ILnet/minecraft/class_2561;)Vnamed <init>Lnet/minecraft/client/MinecraftClient$ChatRestriction;<init>(Ljava/lang/String;ILnet/minecraft/text/Text;)V
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getDescription
- Mappings:
Namespace Name Mixin selector official aLeev$a;a()Lrm;intermediary method_33885Lnet/minecraft/class_310$class_5859;method_33885()Lnet/minecraft/class_2561;named getDescriptionLnet/minecraft/client/MinecraftClient$ChatRestriction;getDescription()Lnet/minecraft/text/Text;
-
allowsChat
public abstract boolean allowsChat(boolean singlePlayer) - Mappings:
Namespace Name Mixin selector official aLeev$a;a(Z)Zintermediary method_33886Lnet/minecraft/class_310$class_5859;method_33886(Z)Znamed allowsChatLnet/minecraft/client/MinecraftClient$ChatRestriction;allowsChat(Z)Z
-