Package net.minecraft.network
Enum Class MessageType.NarrationRule.Kind
- All Implemented Interfaces:
Serializable,Comparable<MessageType.NarrationRule.Kind>,Constable,StringIdentifiable
- Enclosing class:
MessageType.NarrationRule
public static enum MessageType.NarrationRule.Kind
extends Enum<MessageType.NarrationRule.Kind>
implements StringIdentifiable
The narration kind. It also determines if the narration can interrupt
previous ones.
- Mappings:
Namespace Name official rc$a$aintermediary net/minecraft/class_2556$class_7466$class_7467named net/minecraft/network/MessageType$NarrationRule$Kind
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringIdentifiable
StringIdentifiable.Codec<E extends Enum<E> & StringIdentifiable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringIdentifiable.Codec<MessageType.NarrationRule.Kind>The codec for the narration kind.private final booleanprivate final StringFields inherited from interface net.minecraft.util.StringIdentifiable
field_38377 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasString()booleanReturns the enum constant of this class with the specified name.static MessageType.NarrationRule.Kind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CHAT
- Mappings:
Namespace Name Mixin selector official aLrc$a$a;a:Lrc$a$a;intermediary field_39234Lnet/minecraft/class_2556$class_7466$class_7467;field_39234:Lnet/minecraft/class_2556$class_7466$class_7467;named CHATLnet/minecraft/network/MessageType$NarrationRule$Kind;CHAT:Lnet/minecraft/network/MessageType$NarrationRule$Kind;
-
SYSTEM
- Mappings:
Namespace Name Mixin selector official bLrc$a$a;b:Lrc$a$a;intermediary field_39235Lnet/minecraft/class_2556$class_7466$class_7467;field_39235:Lnet/minecraft/class_2556$class_7466$class_7467;named SYSTEMLnet/minecraft/network/MessageType$NarrationRule$Kind;SYSTEM:Lnet/minecraft/network/MessageType$NarrationRule$Kind;
-
-
Field Details
-
CODEC
The codec for the narration kind.- Mappings:
Namespace Name Mixin selector official cLrc$a$a;c:Lcom/mojang/serialization/Codec;intermediary field_39236Lnet/minecraft/class_2556$class_7466$class_7467;field_39236:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/network/MessageType$NarrationRule$Kind;CODEC:Lcom/mojang/serialization/Codec;
-
name
- Mappings:
Namespace Name Mixin selector official dLrc$a$a;d:Ljava/lang/String;intermediary field_39237Lnet/minecraft/class_2556$class_7466$class_7467;field_39237:Ljava/lang/String;named nameLnet/minecraft/network/MessageType$NarrationRule$Kind;name:Ljava/lang/String;
-
interrupt
private final boolean interrupt- Mappings:
Namespace Name Mixin selector official eLrc$a$a;e:Zintermediary field_39238Lnet/minecraft/class_2556$class_7466$class_7467;field_39238:Znamed interruptLnet/minecraft/network/MessageType$NarrationRule$Kind;interrupt:Z
-
-
Constructor Details
-
Kind
- Mappings:
Namespace Name Mixin selector official <init>Lrc$a$a;<init>(Ljava/lang/String;ILjava/lang/String;Z)Vintermediary <init>Lnet/minecraft/class_2556$class_7466$class_7467;<init>(Ljava/lang/String;ILjava/lang/String;Z)Vnamed <init>Lnet/minecraft/network/MessageType$NarrationRule$Kind;<init>(Ljava/lang/String;ILjava/lang/String;Z)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
-
shouldInterrupt
public boolean shouldInterrupt()- Mappings:
Namespace Name Mixin selector official aLrc$a$a;a()Zintermediary method_43851Lnet/minecraft/class_2556$class_7466$class_7467;method_43851()Znamed shouldInterruptLnet/minecraft/network/MessageType$NarrationRule$Kind;shouldInterrupt()Z
-
asString
- Specified by:
asStringin interfaceStringIdentifiable- Mappings:
Namespace Name Mixin selector official cLall;c()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-