Package net.minecraft.util.text.event
Class HoverEvent
- java.lang.Object
-
- net.minecraft.util.text.event.HoverEvent
-
public class HoverEvent extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HoverEvent.Action<T>
static class
HoverEvent.EntityHover
static class
HoverEvent.ItemHover
-
Field Summary
Fields Modifier and Type Field Description private HoverEvent.Action<?>
action
private static org.apache.logging.log4j.Logger
LOGGER
private java.lang.Object
value
-
Constructor Summary
Constructors Constructor Description HoverEvent(HoverEvent.Action<T> p_i232564_1_, T p_i232564_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HoverEvent
deserialize(com.google.gson.JsonObject p_240661_0_)
boolean
equals(java.lang.Object p_equals_1_)
HoverEvent.Action<?>
getAction()
<T> T
getValue(HoverEvent.Action<T> p_240662_1_)
int
hashCode()
com.google.gson.JsonObject
serialize()
java.lang.String
toString()
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
action
private final HoverEvent.Action<?> action
-
value
private final java.lang.Object value
-
-
Constructor Detail
-
HoverEvent
public HoverEvent(HoverEvent.Action<T> p_i232564_1_, T p_i232564_2_)
-
-
Method Detail
-
getAction
public HoverEvent.Action<?> getAction()
-
getValue
@Nullable public <T> T getValue(HoverEvent.Action<T> p_240662_1_)
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
deserialize
@Nullable public static HoverEvent deserialize(com.google.gson.JsonObject p_240661_0_)
-
serialize
public com.google.gson.JsonObject serialize()
-
-