Package net.kyori.adventure.text.event
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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Index<String,
HoverEvent.Action<?>> The name map.static final HoverEvent.Action<String>
Deprecated.Removed in Vanilla 1.12, but we keep it for backwards compatstatic 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 aComponent
when hovered over. -
Method Summary
-
Field Details
-
SHOW_TEXT
Shows aComponent
when hovered over.- Since:
- 4.0.0
-
SHOW_ITEM
Shows an item instance when hovered over.- Since:
- 4.0.0
-
SHOW_ENTITY
Shows an entity when hovered over.- Since:
- 4.0.0
-
SHOW_ACHIEVEMENT
Deprecated.Removed in Vanilla 1.12, but we keep it for backwards compatShows aComponent
when hovered over.- Since:
- 4.14.0
-
NAMES
The name map.- Since:
- 4.0.0
-
-
Method Details