Package net.minecraft.network.chat
Class HoverEvent.Action<T>
java.lang.Object
net.minecraft.network.chat.HoverEvent.Action<T>
- All Implemented Interfaces:
StringRepresentable
- Enclosing class:
HoverEvent
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentable
StringRepresentable.EnumCodec<E extends Enum<E> & StringRepresentable>, StringRepresentable.StringRepresentableCodec<S extends StringRepresentable>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
(package private) final com.mojang.serialization.MapCodec
<HoverEvent.TypedHoverEvent<T>> static final com.mojang.serialization.Codec
<HoverEvent.Action<?>> (package private) final com.mojang.serialization.MapCodec
<HoverEvent.TypedHoverEvent<T>> private final String
static final HoverEvent.Action
<HoverEvent.EntityTooltipInfo> static final HoverEvent.Action
<HoverEvent.ItemStackInfo> static final HoverEvent.Action
<Component> static final com.mojang.serialization.Codec
<HoverEvent.Action<?>> Fields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD
-
Constructor Summary
ConstructorDescriptionAction
(String p_130842_, boolean p_130843_, com.mojang.serialization.Codec<T> p_311195_, HoverEvent.LegacyConverter<T> p_333454_) -
Method Summary
Modifier and TypeMethodDescription(package private) T
private static com.mojang.serialization.DataResult
<HoverEvent.Action<?>> filterForSerialization
(HoverEvent.Action<?> p_311888_) boolean
toString()
-
Field Details
-
SHOW_TEXT
-
SHOW_ITEM
-
SHOW_ENTITY
-
UNSAFE_CODEC
-
CODEC
-
name
-
allowFromServer
private final boolean allowFromServer -
codec
-
legacyCodec
-
-
Constructor Details
-
Action
public Action(String p_130842_, boolean p_130843_, com.mojang.serialization.Codec<T> p_311195_, HoverEvent.LegacyConverter<T> p_333454_)
-
-
Method Details
-
isAllowedFromServer
public boolean isAllowedFromServer() -
getSerializedName
- Specified by:
getSerializedName
in interfaceStringRepresentable
-
cast
-
toString
-
filterForSerialization
private static com.mojang.serialization.DataResult<HoverEvent.Action<?>> filterForSerialization(@Nullable HoverEvent.Action<?> p_311888_)
-