Enum Class HoverEvent.Action

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

public static enum HoverEvent.Action extends Enum<HoverEvent.Action> implements StringIdentifiable
Mappings:
Namespace Name
named net/minecraft/text/HoverEvent$Action
intermediary net/minecraft/class_2568$class_5247
official xm$a
  • Enum Constant Details Link icon

    • SHOW_TEXT Link icon

      public static final HoverEvent.Action SHOW_TEXT
      Mappings:
      Namespace Name Mixin selector
      named SHOW_TEXT Lnet/minecraft/text/HoverEvent$Action;SHOW_TEXT:Lnet/minecraft/text/HoverEvent$Action;
      intermediary field_24342 Lnet/minecraft/class_2568$class_5247;field_24342:Lnet/minecraft/class_2568$class_5247;
      official a Lxm$a;a:Lxm$a;
    • SHOW_ITEM Link icon

      public static final HoverEvent.Action SHOW_ITEM
      Mappings:
      Namespace Name Mixin selector
      named SHOW_ITEM Lnet/minecraft/text/HoverEvent$Action;SHOW_ITEM:Lnet/minecraft/text/HoverEvent$Action;
      intermediary field_24343 Lnet/minecraft/class_2568$class_5247;field_24343:Lnet/minecraft/class_2568$class_5247;
      official b Lxm$a;b:Lxm$a;
    • SHOW_ENTITY Link icon

      public static final HoverEvent.Action SHOW_ENTITY
      Mappings:
      Namespace Name Mixin selector
      named SHOW_ENTITY Lnet/minecraft/text/HoverEvent$Action;SHOW_ENTITY:Lnet/minecraft/text/HoverEvent$Action;
      intermediary field_24344 Lnet/minecraft/class_2568$class_5247;field_24344:Lnet/minecraft/class_2568$class_5247;
      official c Lxm$a;c:Lxm$a;
  • Field Details Link icon

    • UNVALIDATED_CODEC Link icon

      public static final com.mojang.serialization.Codec<HoverEvent.Action> UNVALIDATED_CODEC
      Mappings:
      Namespace Name Mixin selector
      named UNVALIDATED_CODEC Lnet/minecraft/text/HoverEvent$Action;UNVALIDATED_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_46603 Lnet/minecraft/class_2568$class_5247;field_46603:Lcom/mojang/serialization/Codec;
      official d Lxm$a;d:Lcom/mojang/serialization/Codec;
    • CODEC Link icon

      public static final com.mojang.serialization.Codec<HoverEvent.Action> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/text/HoverEvent$Action;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_46604 Lnet/minecraft/class_2568$class_5247;field_46604:Lcom/mojang/serialization/Codec;
      official e Lxm$a;e:Lcom/mojang/serialization/Codec;
    • name Link icon

      private final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/text/HoverEvent$Action;name:Ljava/lang/String;
      intermediary field_24346 Lnet/minecraft/class_2568$class_5247;field_24346:Ljava/lang/String;
      official f Lxm$a;f:Ljava/lang/String;
    • parsable Link icon

      private final boolean parsable
      Mappings:
      Namespace Name Mixin selector
      named parsable Lnet/minecraft/text/HoverEvent$Action;parsable:Z
      intermediary field_24347 Lnet/minecraft/class_2568$class_5247;field_24347:Z
      official g Lxm$a;g:Z
    • codec Link icon

      final com.mojang.serialization.MapCodec<? extends HoverEvent> codec
      Mappings:
      Namespace Name Mixin selector
      named codec Lnet/minecraft/text/HoverEvent$Action;codec:Lcom/mojang/serialization/MapCodec;
      intermediary field_46605 Lnet/minecraft/class_2568$class_5247;field_46605:Lcom/mojang/serialization/MapCodec;
      official h Lxm$a;h:Lcom/mojang/serialization/MapCodec;
  • Constructor Details Link icon

    • Action Link icon

      private Action(String name, boolean parsable, com.mojang.serialization.MapCodec<? extends HoverEvent> codec)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/text/HoverEvent$Action;<init>(Ljava/lang/String;ILjava/lang/String;ZLcom/mojang/serialization/MapCodec;)V
      intermediary <init> Lnet/minecraft/class_2568$class_5247;<init>(Ljava/lang/String;ILjava/lang/String;ZLcom/mojang/serialization/MapCodec;)V
      official <init> Lxm$a;<init>(Ljava/lang/String;ILjava/lang/String;ZLcom/mojang/serialization/MapCodec;)V
  • Method Details Link icon

    • values Link icon

      public static HoverEvent.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 Link icon

      public static HoverEvent.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
    • isParsable Link icon

      public boolean isParsable()
      Mappings:
      Namespace Name Mixin selector
      named isParsable Lnet/minecraft/text/HoverEvent$Action;isParsable()Z
      intermediary method_27667 Lnet/minecraft/class_2568$class_5247;method_27667()Z
      official a Lxm$a;a()Z
    • asString Link icon

      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
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      official c Lbax;c()Ljava/lang/String;
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Enum<HoverEvent.Action>
    • validate Link icon

      private static com.mojang.serialization.DataResult<HoverEvent.Action> validate(HoverEvent.Action action)
      Mappings:
      Namespace Name Mixin selector
      named validate Lnet/minecraft/text/HoverEvent$Action;validate(Lnet/minecraft/text/HoverEvent$Action;)Lcom/mojang/serialization/DataResult;
      intermediary method_54186 Lnet/minecraft/class_2568$class_5247;method_54186(Lnet/minecraft/class_2568$class_5247;)Lcom/mojang/serialization/DataResult;
      official a Lxm$a;a(Lxm$a;)Lcom/mojang/serialization/DataResult;