Enum Class MessageType.NarrationRule.Kind

java.lang.Object
java.lang.Enum<MessageType.NarrationRule.Kind>
net.minecraft.network.message.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$a
intermediary net/minecraft/class_2556$class_7466$class_7467
named net/minecraft/network/message/MessageType$NarrationRule$Kind
  • Enum Constant Details

    • CHAT

      public static final MessageType.NarrationRule.Kind CHAT
      Mappings:
      Namespace Name Mixin selector
      official a Lrj$a$a;a:Lrj$a$a;
      intermediary field_39234 Lnet/minecraft/class_2556$class_7466$class_7467;field_39234:Lnet/minecraft/class_2556$class_7466$class_7467;
      named CHAT Lnet/minecraft/network/message/MessageType$NarrationRule$Kind;CHAT:Lnet/minecraft/network/message/MessageType$NarrationRule$Kind;
    • SYSTEM

      public static final MessageType.NarrationRule.Kind SYSTEM
      Mappings:
      Namespace Name Mixin selector
      official b Lrj$a$a;b:Lrj$a$a;
      intermediary field_39235 Lnet/minecraft/class_2556$class_7466$class_7467;field_39235:Lnet/minecraft/class_2556$class_7466$class_7467;
      named SYSTEM Lnet/minecraft/network/message/MessageType$NarrationRule$Kind;SYSTEM:Lnet/minecraft/network/message/MessageType$NarrationRule$Kind;
  • Field Details

    • CODEC

      Mappings:
      Namespace Name Mixin selector
      official c Lrj$a$a;c:Lcom/mojang/serialization/Codec;
      intermediary field_39236 Lnet/minecraft/class_2556$class_7466$class_7467;field_39236:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/network/message/MessageType$NarrationRule$Kind;CODEC:Lcom/mojang/serialization/Codec;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official d Lrj$a$a;d:Ljava/lang/String;
      intermediary field_39237 Lnet/minecraft/class_2556$class_7466$class_7467;field_39237:Ljava/lang/String;
      named name Lnet/minecraft/network/message/MessageType$NarrationRule$Kind;name:Ljava/lang/String;
    • interrupt

      private final boolean interrupt
      Mappings:
      Namespace Name Mixin selector
      official e Lrj$a$a;e:Z
      intermediary field_39238 Lnet/minecraft/class_2556$class_7466$class_7467;field_39238:Z
      named interrupt Lnet/minecraft/network/message/MessageType$NarrationRule$Kind;interrupt:Z
  • Constructor Details

    • Kind

      private Kind(String name, boolean interrupt)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lrj$a$a;<init>(Ljava/lang/String;ILjava/lang/String;Z)V
      intermediary <init> Lnet/minecraft/class_2556$class_7466$class_7467;<init>(Ljava/lang/String;ILjava/lang/String;Z)V
      named <init> Lnet/minecraft/network/message/MessageType$NarrationRule$Kind;<init>(Ljava/lang/String;ILjava/lang/String;Z)V
  • Method Details

    • values

      public static MessageType.NarrationRule.Kind[] 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 MessageType.NarrationRule.Kind 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
    • 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 a Lrj$a$a;a()Z
      intermediary method_43851 Lnet/minecraft/class_2556$class_7466$class_7467;method_43851()Z
      named shouldInterrupt Lnet/minecraft/network/message/MessageType$NarrationRule$Kind;shouldInterrupt()Z
    • asString

      public String asString()
      Specified by:
      asString in interface StringIdentifiable
      Mappings:
      Namespace Name Mixin selector
      official c Lamd;c()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;