public final class HoverEvent
extends java.lang.Object
A hover event displays a component when hovered
over by a mouse on the client.
| Modifier and Type | Class and Description |
|---|---|
static class |
HoverEvent.Action
An enumeration of hover event actions.
|
| Constructor and Description |
|---|
HoverEvent(@NonNull HoverEvent.Action action,
@NonNull Component value) |
| Modifier and Type | Method and Description |
|---|---|
@NonNull HoverEvent.Action |
action()
Gets the hover event action.
|
@NonNull HoverEvent |
copy()
Creates a copy of this hover event.
|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
@NonNull java.lang.String |
toString() |
@NonNull Component |
value()
Gets the hover event value.
|
public HoverEvent(@NonNull HoverEvent.Action action, @NonNull Component value)
public @NonNull HoverEvent.Action action()
public @NonNull Component value()
public @NonNull HoverEvent copy()
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic @NonNull java.lang.String toString()
toString in class java.lang.Object