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 String
static final com.mojang.serialization.Codec
<HoverEvent.Action> Fields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Action
(String p_393532_, boolean p_130843_, com.mojang.serialization.MapCodec<? extends HoverEvent> p_393857_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static com.mojang.serialization.DataResult
<HoverEvent.Action> filterForSerialization
(HoverEvent.Action p_304784_) boolean
toString()
static HoverEvent.Action
Returns 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 p_393532_, boolean p_130843_, com.mojang.serialization.MapCodec<? extends HoverEvent> p_393857_)
-
-
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:
getSerializedName
in interfaceStringRepresentable
-
toString
- Overrides:
toString
in classEnum<HoverEvent.Action>
-
filterForSerialization
private static com.mojang.serialization.DataResult<HoverEvent.Action> filterForSerialization(HoverEvent.Action p_304784_)
-