Enum Class ClickEvent.Action

java.lang.Object
java.lang.Enum<ClickEvent.Action>
net.minecraft.text.ClickEvent.Action
All Implemented Interfaces:
Serializable, Comparable<ClickEvent.Action>, Constable, StringIdentifiable
Enclosing class:
ClickEvent

public static enum ClickEvent.Action extends Enum<ClickEvent.Action> implements StringIdentifiable
Mappings:
Namespace Name
official vd$a
intermediary net/minecraft/class_2558$class_2559
named net/minecraft/text/ClickEvent$Action
  • Enum Constant Details

    • OPEN_URL

      public static final ClickEvent.Action OPEN_URL
      Mappings:
      Namespace Name Mixin selector
      official a Lvd$a;a:Lvd$a;
      intermediary field_11749 Lnet/minecraft/class_2558$class_2559;field_11749:Lnet/minecraft/class_2558$class_2559;
      named OPEN_URL Lnet/minecraft/text/ClickEvent$Action;OPEN_URL:Lnet/minecraft/text/ClickEvent$Action;
    • OPEN_FILE

      public static final ClickEvent.Action OPEN_FILE
      Mappings:
      Namespace Name Mixin selector
      official b Lvd$a;b:Lvd$a;
      intermediary field_11746 Lnet/minecraft/class_2558$class_2559;field_11746:Lnet/minecraft/class_2558$class_2559;
      named OPEN_FILE Lnet/minecraft/text/ClickEvent$Action;OPEN_FILE:Lnet/minecraft/text/ClickEvent$Action;
    • RUN_COMMAND

      public static final ClickEvent.Action RUN_COMMAND
      Mappings:
      Namespace Name Mixin selector
      official c Lvd$a;c:Lvd$a;
      intermediary field_11750 Lnet/minecraft/class_2558$class_2559;field_11750:Lnet/minecraft/class_2558$class_2559;
      named RUN_COMMAND Lnet/minecraft/text/ClickEvent$Action;RUN_COMMAND:Lnet/minecraft/text/ClickEvent$Action;
    • SUGGEST_COMMAND

      public static final ClickEvent.Action SUGGEST_COMMAND
      Mappings:
      Namespace Name Mixin selector
      official d Lvd$a;d:Lvd$a;
      intermediary field_11745 Lnet/minecraft/class_2558$class_2559;field_11745:Lnet/minecraft/class_2558$class_2559;
      named SUGGEST_COMMAND Lnet/minecraft/text/ClickEvent$Action;SUGGEST_COMMAND:Lnet/minecraft/text/ClickEvent$Action;
    • CHANGE_PAGE

      public static final ClickEvent.Action CHANGE_PAGE
      Mappings:
      Namespace Name Mixin selector
      official e Lvd$a;e:Lvd$a;
      intermediary field_11748 Lnet/minecraft/class_2558$class_2559;field_11748:Lnet/minecraft/class_2558$class_2559;
      named CHANGE_PAGE Lnet/minecraft/text/ClickEvent$Action;CHANGE_PAGE:Lnet/minecraft/text/ClickEvent$Action;
    • COPY_TO_CLIPBOARD

      public static final ClickEvent.Action COPY_TO_CLIPBOARD
      Mappings:
      Namespace Name Mixin selector
      official f Lvd$a;f:Lvd$a;
      intermediary field_21462 Lnet/minecraft/class_2558$class_2559;field_21462:Lnet/minecraft/class_2558$class_2559;
      named COPY_TO_CLIPBOARD Lnet/minecraft/text/ClickEvent$Action;COPY_TO_CLIPBOARD:Lnet/minecraft/text/ClickEvent$Action;
  • Field Details

    • UNVALIDATED_CODEC

      public static final com.mojang.serialization.MapCodec<ClickEvent.Action> UNVALIDATED_CODEC
      Mappings:
      Namespace Name Mixin selector
      official g Lvd$a;g:Lcom/mojang/serialization/MapCodec;
      intermediary field_46595 Lnet/minecraft/class_2558$class_2559;field_46595:Lcom/mojang/serialization/MapCodec;
      named UNVALIDATED_CODEC Lnet/minecraft/text/ClickEvent$Action;UNVALIDATED_CODEC:Lcom/mojang/serialization/MapCodec;
    • CODEC

      public static final com.mojang.serialization.MapCodec<ClickEvent.Action> CODEC
      Mappings:
      Namespace Name Mixin selector
      official h Lvd$a;h:Lcom/mojang/serialization/MapCodec;
      intermediary field_46596 Lnet/minecraft/class_2558$class_2559;field_46596:Lcom/mojang/serialization/MapCodec;
      named CODEC Lnet/minecraft/text/ClickEvent$Action;CODEC:Lcom/mojang/serialization/MapCodec;
    • userDefinable

      private final boolean userDefinable
      Mappings:
      Namespace Name Mixin selector
      official i Lvd$a;i:Z
      intermediary field_11744 Lnet/minecraft/class_2558$class_2559;field_11744:Z
      named userDefinable Lnet/minecraft/text/ClickEvent$Action;userDefinable:Z
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official j Lvd$a;j:Ljava/lang/String;
      intermediary field_11742 Lnet/minecraft/class_2558$class_2559;field_11742:Ljava/lang/String;
      named name Lnet/minecraft/text/ClickEvent$Action;name:Ljava/lang/String;
  • Constructor Details

    • Action

      private Action(String name, boolean userDefinable)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lvd$a;<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
      named <init> Lnet/minecraft/text/ClickEvent$Action;<init>(Ljava/lang/String;ILjava/lang/String;Z)V
  • Method Details

    • values

      public static ClickEvent.Action[] 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 ClickEvent.Action 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
    • isUserDefinable

      public boolean isUserDefinable()
      Mappings:
      Namespace Name Mixin selector
      official a Lvd$a;a()Z
      intermediary method_10847 Lnet/minecraft/class_2558$class_2559;method_10847()Z
      named isUserDefinable Lnet/minecraft/text/ClickEvent$Action;isUserDefinable()Z
    • asString

      public String asString()
      Returns the unique string representation of the enum, used for serialization.
      Specified by:
      asString in interface StringIdentifiable
      Returns:
      the unique string representation of the enum, used for serialization
      Mappings:
      Namespace Name Mixin selector
      official c Lavk;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;
    • validate

      public static com.mojang.serialization.DataResult<ClickEvent.Action> validate(ClickEvent.Action action)
      Mappings:
      Namespace Name Mixin selector
      official a Lvd$a;a(Lvd$a;)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;
      named validate Lnet/minecraft/text/ClickEvent$Action;validate(Lnet/minecraft/text/ClickEvent$Action;)Lcom/mojang/serialization/DataResult;