Enum Class ChatHud.ChatMethod

java.lang.Object
java.lang.Enum<ChatHud.ChatMethod>
net.minecraft.client.gui.hud.ChatHud.ChatMethod
All Implemented Interfaces:
Serializable, Comparable<ChatHud.ChatMethod>, Constable
Enclosing class:
ChatHud

@Environment(CLIENT) public static enum ChatHud.ChatMethod extends Enum<ChatHud.ChatMethod>
Mappings:
Namespace Name
named net/minecraft/client/gui/hud/ChatHud$ChatMethod
intermediary net/minecraft/class_338$class_11732
official gdq$a
  • Enum Constant Details

    • MESSAGE

      public static final ChatHud.ChatMethod MESSAGE
      Mappings:
      Namespace Name Mixin selector
      named MESSAGE Lnet/minecraft/client/gui/hud/ChatHud$ChatMethod;MESSAGE:Lnet/minecraft/client/gui/hud/ChatHud$ChatMethod;
      intermediary field_62004 Lnet/minecraft/class_338$class_11732;field_62004:Lnet/minecraft/class_338$class_11732;
      official a Lgdq$a;a:Lgdq$a;
    • COMMAND

      public static final ChatHud.ChatMethod COMMAND
      Mappings:
      Namespace Name Mixin selector
      named COMMAND Lnet/minecraft/client/gui/hud/ChatHud$ChatMethod;COMMAND:Lnet/minecraft/client/gui/hud/ChatHud$ChatMethod;
      intermediary field_62005 Lnet/minecraft/class_338$class_11732;field_62005:Lnet/minecraft/class_338$class_11732;
      official b Lgdq$a;b:Lgdq$a;
  • Field Details

    • replacement

      private final String replacement
      Mappings:
      Namespace Name Mixin selector
      named replacement Lnet/minecraft/client/gui/hud/ChatHud$ChatMethod;replacement:Ljava/lang/String;
      intermediary field_62006 Lnet/minecraft/class_338$class_11732;field_62006:Ljava/lang/String;
      official c Lgdq$a;c:Ljava/lang/String;
  • Constructor Details

    • ChatMethod

      private ChatMethod(String replacement)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/hud/ChatHud$ChatMethod;<init>(Ljava/lang/String;ILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_338$class_11732;<init>(Ljava/lang/String;ILjava/lang/String;)V
      official <init> Lgdq$a;<init>(Ljava/lang/String;ILjava/lang/String;)V
  • Method Details

    • values

      public static ChatHud.ChatMethod[] 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 ChatHud.ChatMethod 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
    • getReplacement

      public String getReplacement()
      Mappings:
      Namespace Name Mixin selector
      named getReplacement Lnet/minecraft/client/gui/hud/ChatHud$ChatMethod;getReplacement()Ljava/lang/String;
      intermediary method_73207 Lnet/minecraft/class_338$class_11732;method_73207()Ljava/lang/String;
      official a Lgdq$a;a()Ljava/lang/String;
    • shouldKeepDraft

      public abstract boolean shouldKeepDraft(ChatHud.Draft draft)
      Returns whether the saved draft should be shown. when opening the chat screen.

      This depends on the method used to open it (represented by this). Using the normal chat key, all drafts can still be used. When opening the chat screen using the command key instead, only a saved command can be retained, not a chat message.

      Parameters:
      draft - the saved draft
      Returns:
      whether the saved draft should be shown
      Mappings:
      Namespace Name Mixin selector
      named shouldKeepDraft Lnet/minecraft/client/gui/hud/ChatHud$ChatMethod;shouldKeepDraft(Lnet/minecraft/client/gui/hud/ChatHud$Draft;)Z
      intermediary method_73208 Lnet/minecraft/class_338$class_11732;method_73208(Lnet/minecraft/class_338$class_11733;)Z
      official a Lgdq$a;a(Lgdq$c;)Z