Enum Class HoverEvent.Action

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

public static enum HoverEvent.Action extends Enum<HoverEvent.Action> implements StringRepresentable
  • Enum Constant Details

  • Field Details

    • UNSAFE_CODEC

      public static final com.mojang.serialization.Codec<HoverEvent.Action> UNSAFE_CODEC
    • CODEC

      public static final com.mojang.serialization.Codec<HoverEvent.Action> CODEC
    • name

      private final String name
    • allowFromServer

      private final boolean allowFromServer
    • codec

      final com.mojang.serialization.MapCodec<? extends HoverEvent> codec
  • Constructor Details

    • Action

      private Action(String p_393532_, boolean p_130843_, com.mojang.serialization.MapCodec<? extends HoverEvent> p_393857_)
  • Method Details

    • values

      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

      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
    • isAllowedFromServer

      public boolean isAllowedFromServer()
    • getSerializedName

      public String getSerializedName()
      Specified by:
      getSerializedName in interface StringRepresentable
    • toString

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

      private static com.mojang.serialization.DataResult<HoverEvent.Action> filterForSerialization(HoverEvent.Action p_304784_)