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 kind of narration. This is also known as priority, because it determines
if the incoming narration should interrupt the current one. This is also used
to check if the message should be narrated when the narrator option is set to "Chat" or "System".
- Mappings:
Namespace Name official rj$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>private final booleanprivate final StringFields inherited from interface net.minecraft.util.StringIdentifiable
field_38377 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasString()booleanReturns whether the message has priority over others and should interrupt their narrations.Returns 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 aLrj$a$a;a:Lrj$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 bLrj$a$a;b:Lrj$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
- Mappings:
Namespace Name Mixin selector official cLrj$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 dLrj$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 eLrj$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>Lrj$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()Returns whether the message has priority over others and should interrupt their narrations.- Returns:
- whether the message has priority over others and should interrupt their narrations
- Mappings:
Namespace Name Mixin selector official aLrj$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 cLamd;c()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-