public class HoverEvent extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HoverEvent.Action<T> |
static class |
HoverEvent.EntityContent |
static class |
HoverEvent.ItemStackContent |
Modifier and Type | Field and Description |
---|---|
private HoverEvent.Action<?> |
action |
private Object |
contents |
private static Logger |
LOGGER |
Constructor and Description |
---|
HoverEvent(HoverEvent.Action<T> action,
T contents) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static HoverEvent |
fromJson(JsonObject json) |
HoverEvent.Action<?> |
getAction() |
<T> T |
getValue(HoverEvent.Action<T> action) |
int |
hashCode() |
JsonObject |
toJson() |
String |
toString() |
private static final Logger LOGGER
private final HoverEvent.Action<?> action
private final Object contents
public HoverEvent(HoverEvent.Action<T> action, T contents)
public HoverEvent.Action<?> getAction()
@Nullable public <T> T getValue(HoverEvent.Action<T> action)
@Nullable public static HoverEvent fromJson(JsonObject json)
public JsonObject toJson()