Package net.minecraft.network.chat
Enum Class HoverEvent.Action
- All Implemented Interfaces:
Serializable,Comparable<HoverEvent.Action>,Constable,StringRepresentable
- Enclosing interface:
HoverEvent
-
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.StringRepresentable
StringRepresentable.EnumCodec<E extends Enum<E> & StringRepresentable>, StringRepresentable.StringRepresentableCodec<S extends StringRepresentable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean(package private) final com.mojang.serialization.MapCodec<? extends HoverEvent> static final com.mojang.serialization.Codec<HoverEvent.Action> private final Stringstatic final com.mojang.serialization.Codec<HoverEvent.Action> Fields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateAction(String pName, boolean pAllowFromServer, com.mojang.serialization.MapCodec<? extends HoverEvent> pCodec) -
Method Summary
Modifier and TypeMethodDescriptionprivate static com.mojang.serialization.DataResult<HoverEvent.Action> filterForSerialization(HoverEvent.Action pAction) booleantoString()static HoverEvent.ActionReturns the enum constant of this class with the specified name.static HoverEvent.Action[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SHOW_TEXT
-
SHOW_ITEM
-
SHOW_ENTITY
-
-
Field Details
-
UNSAFE_CODEC
-
CODEC
-
name
-
allowFromServer
private final boolean allowFromServer -
codec
-
-
Constructor Details
-
Action
private Action(String pName, boolean pAllowFromServer, com.mojang.serialization.MapCodec<? extends HoverEvent> pCodec)
-
-
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
-
isAllowedFromServer
public boolean isAllowedFromServer() -
getSerializedName
- Specified by:
getSerializedNamein interfaceStringRepresentable
-
toString
- Overrides:
toStringin classEnum<HoverEvent.Action>
-
filterForSerialization
private static com.mojang.serialization.DataResult<HoverEvent.Action> filterForSerialization(HoverEvent.Action pAction)
-