net.minecraft.network.chat

public class HoverEvent$Action<T>

tq$a
net.minecraft.network.chat.HoverEvent$Action
net.minecraft.class_2568$class_5247
net.minecraft.text.HoverEvent$Action
net.minecraft.src.C_5007_$C_5008_
net.minecraft.network.chat.ChatHoverable$EnumHoverAction

Field summary

Modifier and TypeField
public static final HoverEvent$Action<Component>
a
SHOW_TEXT
field_24342
SHOW_TEXT
f_130831_
public static final HoverEvent$Action<HoverEvent$ItemStackInfo>
b
SHOW_ITEM
field_24343
SHOW_ITEM
f_130832_
public static final HoverEvent$Action<HoverEvent$EntityTooltipInfo>
c
SHOW_ENTITY
field_24344
SHOW_ENTITY
f_130833_
private static final Map<String, HoverEvent$Action<?>>
d
LOOKUP
field_24345
BY_NAME
f_130834_
private final String
e
name
field_24346
name
f_130835_
private final boolean
f
allowFromServer
field_24347
parsable
f_130836_
private final Function<com.google.gson.JsonElement, T>
g
argDeserializer
field_24348
deserializer
f_130837_
private final Function<T, com.google.gson.JsonElement>
h
argSerializer
field_24349
serializer
f_130838_
private final Function<Component, T>
i
legacyArgDeserializer
field_24350
legacyDeserializer
f_130839_

Constructor summary

ModifierConstructor
public (String name, boolean parsable, Function<com.google.gson.JsonElement, T> deserializer, Function<T, com.google.gson.JsonElement> serializer, Function<Component, T> legacyDeserializer)

Method summary

Modifier and TypeMethod
public boolean
a()
isAllowedFromServer()
method_27667()
isParsable()
m_130847_()
public String
b()
getName()
method_27674()
getName()
m_130861_()
public static HoverEvent$Action<?>
a(String arg0)
getByName(String arg0)
method_27670(String arg0)
byName(String name)
m_130852_(String p_130853_)
T
b(Object arg0)
cast(Object arg0)
method_27676(Object arg0)
cast(Object o)
m_130864_(Object arg0)
public HoverEvent
a(com.google.gson.JsonElement arg0)
deserialize(com.google.gson.JsonElement arg0)
method_27668(com.google.gson.JsonElement arg0)
buildHoverEvent(com.google.gson.JsonElement contents)
m_130848_(com.google.gson.JsonElement arg0)
public HoverEvent
a(tl arg0)
deserializeFromLegacy(Component arg0)
method_27671(class_2561 arg0)
buildHoverEvent(Text value)
m_130854_(C_4996_ arg0)
public com.google.gson.JsonElement
a(Object arg0)
serializeArg(Object arg0)
method_27669(Object arg0)
contentsToJson(Object contents)
m_130850_(Object arg0)