Package net.minecraft.text
Enum Class ClickEvent.Action
- All Implemented Interfaces:
Serializable
,Comparable<ClickEvent.Action>
,Constable
,StringIdentifiable
- Enclosing class:
ClickEvent
- Mappings:
Namespace Name named net/minecraft/text/ClickEvent$Action
intermediary net/minecraft/class_2558$class_2559
official xt$a
-
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.BasicCodec<S extends StringIdentifiable>, StringIdentifiable.EnumCodec<E extends Enum<E> & StringIdentifiable>
-
Enum Constant Summary
Enum ConstantDescription -
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<ClickEvent.Action> private final String
static final com.mojang.serialization.MapCodec
<ClickEvent.Action> private final boolean
Fields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasString()
Returns the unique string representation of the enum, used for serialization.boolean
static com.mojang.serialization.DataResult
<ClickEvent.Action> validate
(ClickEvent.Action action) static ClickEvent.Action
Returns the enum constant of this class with the specified name.static ClickEvent.Action[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OPEN_URL
- Mappings:
Namespace Name Mixin selector named OPEN_URL
Lnet/minecraft/text/ClickEvent$Action;OPEN_URL:Lnet/minecraft/text/ClickEvent$Action;
intermediary field_11749
Lnet/minecraft/class_2558$class_2559;field_11749:Lnet/minecraft/class_2558$class_2559;
official a
Lxt$a;a:Lxt$a;
-
OPEN_FILE
- Mappings:
Namespace Name Mixin selector named OPEN_FILE
Lnet/minecraft/text/ClickEvent$Action;OPEN_FILE:Lnet/minecraft/text/ClickEvent$Action;
intermediary field_11746
Lnet/minecraft/class_2558$class_2559;field_11746:Lnet/minecraft/class_2558$class_2559;
official b
Lxt$a;b:Lxt$a;
-
RUN_COMMAND
- Mappings:
Namespace Name Mixin selector named RUN_COMMAND
Lnet/minecraft/text/ClickEvent$Action;RUN_COMMAND:Lnet/minecraft/text/ClickEvent$Action;
intermediary field_11750
Lnet/minecraft/class_2558$class_2559;field_11750:Lnet/minecraft/class_2558$class_2559;
official c
Lxt$a;c:Lxt$a;
-
SUGGEST_COMMAND
- Mappings:
Namespace Name Mixin selector named SUGGEST_COMMAND
Lnet/minecraft/text/ClickEvent$Action;SUGGEST_COMMAND:Lnet/minecraft/text/ClickEvent$Action;
intermediary field_11745
Lnet/minecraft/class_2558$class_2559;field_11745:Lnet/minecraft/class_2558$class_2559;
official d
Lxt$a;d:Lxt$a;
-
CHANGE_PAGE
- Mappings:
Namespace Name Mixin selector named CHANGE_PAGE
Lnet/minecraft/text/ClickEvent$Action;CHANGE_PAGE:Lnet/minecraft/text/ClickEvent$Action;
intermediary field_11748
Lnet/minecraft/class_2558$class_2559;field_11748:Lnet/minecraft/class_2558$class_2559;
official e
Lxt$a;e:Lxt$a;
-
COPY_TO_CLIPBOARD
- Mappings:
Namespace Name Mixin selector named COPY_TO_CLIPBOARD
Lnet/minecraft/text/ClickEvent$Action;COPY_TO_CLIPBOARD:Lnet/minecraft/text/ClickEvent$Action;
intermediary field_21462
Lnet/minecraft/class_2558$class_2559;field_21462:Lnet/minecraft/class_2558$class_2559;
official f
Lxt$a;f:Lxt$a;
-
-
Field Details
-
UNVALIDATED_CODEC
- Mappings:
Namespace Name Mixin selector named UNVALIDATED_CODEC
Lnet/minecraft/text/ClickEvent$Action;UNVALIDATED_CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_46595
Lnet/minecraft/class_2558$class_2559;field_46595:Lcom/mojang/serialization/MapCodec;
official g
Lxt$a;g:Lcom/mojang/serialization/MapCodec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/text/ClickEvent$Action;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_46596
Lnet/minecraft/class_2558$class_2559;field_46596:Lcom/mojang/serialization/MapCodec;
official h
Lxt$a;h:Lcom/mojang/serialization/MapCodec;
-
userDefinable
private final boolean userDefinable- Mappings:
Namespace Name Mixin selector named userDefinable
Lnet/minecraft/text/ClickEvent$Action;userDefinable:Z
intermediary field_11744
Lnet/minecraft/class_2558$class_2559;field_11744:Z
official i
Lxt$a;i:Z
-
name
- Mappings:
Namespace Name Mixin selector named name
Lnet/minecraft/text/ClickEvent$Action;name:Ljava/lang/String;
intermediary field_11742
Lnet/minecraft/class_2558$class_2559;field_11742:Ljava/lang/String;
official j
Lxt$a;j:Ljava/lang/String;
-
-
Constructor Details
-
Action
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/text/ClickEvent$Action;<init>(Ljava/lang/String;ILjava/lang/String;Z)V
intermediary <init>
Lnet/minecraft/class_2558$class_2559;<init>(Ljava/lang/String;ILjava/lang/String;Z)V
official <init>
Lxt$a;<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
-
isUserDefinable
public boolean isUserDefinable()- Mappings:
Namespace Name Mixin selector named isUserDefinable
Lnet/minecraft/text/ClickEvent$Action;isUserDefinable()Z
intermediary method_10847
Lnet/minecraft/class_2558$class_2559;method_10847()Z
official a
Lxt$a;a()Z
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asString
in interfaceStringIdentifiable
- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector named asString
Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
intermediary method_15434
Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
official c
Lbba;c()Ljava/lang/String;
-
validate
public static com.mojang.serialization.DataResult<ClickEvent.Action> validate(ClickEvent.Action action) - Mappings:
Namespace Name Mixin selector named validate
Lnet/minecraft/text/ClickEvent$Action;validate(Lnet/minecraft/text/ClickEvent$Action;)Lcom/mojang/serialization/DataResult;
intermediary method_54152
Lnet/minecraft/class_2558$class_2559;method_54152(Lnet/minecraft/class_2558$class_2559;)Lcom/mojang/serialization/DataResult;
official a
Lxt$a;a(Lxt$a;)Lcom/mojang/serialization/DataResult;
-