Package net.minecraft.text
Enum Class ClickEvent.Action
- All Implemented Interfaces:
Serializable,Comparable<ClickEvent.Action>,Constable,StringIdentifiable
- Enclosing interface:
ClickEvent
- Mappings:
Namespace Name named net/minecraft/text/ClickEvent$Actionintermediary net/minecraft/class_2558$class_2559official yk$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 ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final com.mojang.serialization.MapCodec<? extends ClickEvent> static final com.mojang.serialization.Codec<ClickEvent.Action> private final Stringstatic final com.mojang.serialization.Codec<ClickEvent.Action> private final booleanFields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateAction(String name, boolean userDefinable, com.mojang.serialization.MapCodec<? extends ClickEvent> codec) -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.com.mojang.serialization.MapCodec<? extends ClickEvent> getCodec()booleanstatic com.mojang.serialization.DataResult<ClickEvent.Action> validate(ClickEvent.Action action) static ClickEvent.ActionReturns 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_URLLnet/minecraft/text/ClickEvent$Action;OPEN_URL:Lnet/minecraft/text/ClickEvent$Action;intermediary field_11749Lnet/minecraft/class_2558$class_2559;field_11749:Lnet/minecraft/class_2558$class_2559;official aLyk$a;a:Lyk$a;
-
OPEN_FILE
- Mappings:
Namespace Name Mixin selector named OPEN_FILELnet/minecraft/text/ClickEvent$Action;OPEN_FILE:Lnet/minecraft/text/ClickEvent$Action;intermediary field_11746Lnet/minecraft/class_2558$class_2559;field_11746:Lnet/minecraft/class_2558$class_2559;official bLyk$a;b:Lyk$a;
-
RUN_COMMAND
- Mappings:
Namespace Name Mixin selector named RUN_COMMANDLnet/minecraft/text/ClickEvent$Action;RUN_COMMAND:Lnet/minecraft/text/ClickEvent$Action;intermediary field_11750Lnet/minecraft/class_2558$class_2559;field_11750:Lnet/minecraft/class_2558$class_2559;official cLyk$a;c:Lyk$a;
-
SUGGEST_COMMAND
- Mappings:
Namespace Name Mixin selector named SUGGEST_COMMANDLnet/minecraft/text/ClickEvent$Action;SUGGEST_COMMAND:Lnet/minecraft/text/ClickEvent$Action;intermediary field_11745Lnet/minecraft/class_2558$class_2559;field_11745:Lnet/minecraft/class_2558$class_2559;official dLyk$a;d:Lyk$a;
-
SHOW_DIALOG
- Mappings:
Namespace Name Mixin selector named SHOW_DIALOGLnet/minecraft/text/ClickEvent$Action;SHOW_DIALOG:Lnet/minecraft/text/ClickEvent$Action;intermediary field_60821Lnet/minecraft/class_2558$class_2559;field_60821:Lnet/minecraft/class_2558$class_2559;official eLyk$a;e:Lyk$a;
-
CHANGE_PAGE
- Mappings:
Namespace Name Mixin selector named CHANGE_PAGELnet/minecraft/text/ClickEvent$Action;CHANGE_PAGE:Lnet/minecraft/text/ClickEvent$Action;intermediary field_11748Lnet/minecraft/class_2558$class_2559;field_11748:Lnet/minecraft/class_2558$class_2559;official fLyk$a;f:Lyk$a;
-
COPY_TO_CLIPBOARD
- Mappings:
Namespace Name Mixin selector named COPY_TO_CLIPBOARDLnet/minecraft/text/ClickEvent$Action;COPY_TO_CLIPBOARD:Lnet/minecraft/text/ClickEvent$Action;intermediary field_21462Lnet/minecraft/class_2558$class_2559;field_21462:Lnet/minecraft/class_2558$class_2559;official gLyk$a;g:Lyk$a;
-
CUSTOM
- Mappings:
Namespace Name Mixin selector named CUSTOMLnet/minecraft/text/ClickEvent$Action;CUSTOM:Lnet/minecraft/text/ClickEvent$Action;intermediary field_60822Lnet/minecraft/class_2558$class_2559;field_60822:Lnet/minecraft/class_2558$class_2559;official hLyk$a;h:Lyk$a;
-
-
Field Details
-
UNVALIDATED_CODEC
- Mappings:
Namespace Name Mixin selector named UNVALIDATED_CODECLnet/minecraft/text/ClickEvent$Action;UNVALIDATED_CODEC:Lcom/mojang/serialization/Codec;intermediary field_46595Lnet/minecraft/class_2558$class_2559;field_46595:Lcom/mojang/serialization/Codec;official iLyk$a;i:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/text/ClickEvent$Action;CODEC:Lcom/mojang/serialization/Codec;intermediary field_46596Lnet/minecraft/class_2558$class_2559;field_46596:Lcom/mojang/serialization/Codec;official jLyk$a;j:Lcom/mojang/serialization/Codec;
-
userDefinable
private final boolean userDefinable- Mappings:
Namespace Name Mixin selector named userDefinableLnet/minecraft/text/ClickEvent$Action;userDefinable:Zintermediary field_11744Lnet/minecraft/class_2558$class_2559;field_11744:Zofficial kLyk$a;k:Z
-
name
- Mappings:
Namespace Name Mixin selector named nameLnet/minecraft/text/ClickEvent$Action;name:Ljava/lang/String;intermediary field_11742Lnet/minecraft/class_2558$class_2559;field_11742:Ljava/lang/String;official lLyk$a;l:Ljava/lang/String;
-
codec
- Mappings:
Namespace Name Mixin selector named codecLnet/minecraft/text/ClickEvent$Action;codec:Lcom/mojang/serialization/MapCodec;intermediary field_55902Lnet/minecraft/class_2558$class_2559;field_55902:Lcom/mojang/serialization/MapCodec;official mLyk$a;m:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
Action
private Action(String name, boolean userDefinable, com.mojang.serialization.MapCodec<? extends ClickEvent> codec) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/text/ClickEvent$Action;<init>(Ljava/lang/String;ILjava/lang/String;ZLcom/mojang/serialization/MapCodec;)Vintermediary <init>Lnet/minecraft/class_2558$class_2559;<init>(Ljava/lang/String;ILjava/lang/String;ZLcom/mojang/serialization/MapCodec;)Vofficial <init>Lyk$a;<init>(Ljava/lang/String;ILjava/lang/String;ZLcom/mojang/serialization/MapCodec;)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 isUserDefinableLnet/minecraft/text/ClickEvent$Action;isUserDefinable()Zintermediary method_10847Lnet/minecraft/class_2558$class_2559;method_10847()Zofficial aLyk$a;a()Z
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asStringin interfaceStringIdentifiable- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;official cLbhg;c()Ljava/lang/String;
-
getCodec
- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/text/ClickEvent$Action;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_72184Lnet/minecraft/class_2558$class_2559;method_72184()Lcom/mojang/serialization/MapCodec;official bLyk$a;b()Lcom/mojang/serialization/MapCodec;
-
validate
public static com.mojang.serialization.DataResult<ClickEvent.Action> validate(ClickEvent.Action action) - Mappings:
Namespace Name Mixin selector named validateLnet/minecraft/text/ClickEvent$Action;validate(Lnet/minecraft/text/ClickEvent$Action;)Lcom/mojang/serialization/DataResult;intermediary method_54152Lnet/minecraft/class_2558$class_2559;method_54152(Lnet/minecraft/class_2558$class_2559;)Lcom/mojang/serialization/DataResult;official aLyk$a;a(Lyk$a;)Lcom/mojang/serialization/DataResult;
-