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>
public static final class HoverEvent.Action<V> extends Object
An enumeration of hover event actions.- Since:
- 4.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static Index<String,HoverEvent.Action<?>>NAMESThe name map.static HoverEvent.Action<HoverEvent.ShowEntity>SHOW_ENTITYShows an entity when hovered over.static HoverEvent.Action<HoverEvent.ShowItem>SHOW_ITEMShows an item instance when hovered over.static HoverEvent.Action<Component>SHOW_TEXTShows aComponentwhen hovered over.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanreadable()Tests if this action is readable.@NotNull StringtoString()@NotNull Class<V>type()Gets the value type.
-
-
-
Field Detail
-
SHOW_TEXT
public static final HoverEvent.Action<Component> SHOW_TEXT
Shows aComponentwhen hovered over.- Since:
- 4.0.0
-
SHOW_ITEM
public static final HoverEvent.Action<HoverEvent.ShowItem> SHOW_ITEM
Shows an item instance when hovered over.- Since:
- 4.0.0
-
SHOW_ENTITY
public static final HoverEvent.Action<HoverEvent.ShowEntity> SHOW_ENTITY
Shows an entity when hovered over.- Since:
- 4.0.0
-
NAMES
public static final Index<String,HoverEvent.Action<?>> NAMES
The name map.- Since:
- 4.0.0
-
-