Package net.minecraft.client.gui.hud
Enum Class ChatHud.ChatMethod
- All Implemented Interfaces:
Serializable,Comparable<ChatHud.ChatMethod>,Constable
- Enclosing class:
ChatHud
- Mappings:
Namespace Name named net/minecraft/client/gui/hud/ChatHud$ChatMethodintermediary net/minecraft/class_338$class_11732official gdq$a
-
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 booleanshouldKeepDraft(ChatHud.Draft draft) Returns whether the saved draft should be shown.static ChatHud.ChatMethodReturns the enum constant of this class with the specified name.static ChatHud.ChatMethod[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MESSAGE
- Mappings:
Namespace Name Mixin selector named MESSAGELnet/minecraft/client/gui/hud/ChatHud$ChatMethod;MESSAGE:Lnet/minecraft/client/gui/hud/ChatHud$ChatMethod;intermediary field_62004Lnet/minecraft/class_338$class_11732;field_62004:Lnet/minecraft/class_338$class_11732;official aLgdq$a;a:Lgdq$a;
-
COMMAND
- Mappings:
Namespace Name Mixin selector named COMMANDLnet/minecraft/client/gui/hud/ChatHud$ChatMethod;COMMAND:Lnet/minecraft/client/gui/hud/ChatHud$ChatMethod;intermediary field_62005Lnet/minecraft/class_338$class_11732;field_62005:Lnet/minecraft/class_338$class_11732;official bLgdq$a;b:Lgdq$a;
-
-
Field Details
-
replacement
- Mappings:
Namespace Name Mixin selector named replacementLnet/minecraft/client/gui/hud/ChatHud$ChatMethod;replacement:Ljava/lang/String;intermediary field_62006Lnet/minecraft/class_338$class_11732;field_62006:Ljava/lang/String;official cLgdq$a;c:Ljava/lang/String;
-
-
Constructor Details
-
ChatMethod
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/hud/ChatHud$ChatMethod;<init>(Ljava/lang/String;ILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_338$class_11732;<init>(Ljava/lang/String;ILjava/lang/String;)Vofficial <init>Lgdq$a;<init>(Ljava/lang/String;ILjava/lang/String;)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
-
getReplacement
- Mappings:
Namespace Name Mixin selector named getReplacementLnet/minecraft/client/gui/hud/ChatHud$ChatMethod;getReplacement()Ljava/lang/String;intermediary method_73207Lnet/minecraft/class_338$class_11732;method_73207()Ljava/lang/String;official aLgdq$a;a()Ljava/lang/String;
-
shouldKeepDraft
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 shouldKeepDraftLnet/minecraft/client/gui/hud/ChatHud$ChatMethod;shouldKeepDraft(Lnet/minecraft/client/gui/hud/ChatHud$Draft;)Zintermediary method_73208Lnet/minecraft/class_338$class_11732;method_73208(Lnet/minecraft/class_338$class_11733;)Zofficial aLgdq$a;a(Lgdq$c;)Z
-