Class HoverEvent.Action<V>
java.lang.Object
net.kyori.adventure.text.event.HoverEvent.Action<V>
- Type Parameters:
V- the value type an action handles
- Enclosing class:
HoverEvent<V>
An enumeration of hover event actions.
- Since:
- 4.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceType-specific renderer. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Index<String, HoverEvent.Action<?>> The name map.static final HoverEvent.Action<String> Shows aComponentwhen hovered over.static final HoverEvent.Action<HoverEvent.ShowEntity> Shows an entity when hovered over.static final HoverEvent.Action<HoverEvent.ShowItem> Shows an item instance when hovered over.static final HoverEvent.Action<Component> Shows aComponentwhen hovered over. -
Method Summary
-
Field Details
-
Method Details
-
name
-
type
-
readable
public boolean readable()Tests if this action is readable.- Returns:
trueif this action is readable,falseif this action is not readable- Since:
- 4.0.0
-
renderer
The renderer for this action.- Returns:
- the renderer
- Since:
- 5.0.0
-
toString
-