Uses of Class
net.kyori.adventure.text.event.HoverEvent
Packages that use HoverEvent
Package
Description
Data for controlling components, their styles, and events.
Events that occur when players interact with components.
Formats which may be applied to components.
-
Uses of HoverEvent in net.kyori.adventure.text
Methods in net.kyori.adventure.text that return HoverEventModifier and TypeMethodDescriptiondefault HoverEvent<Component> Component.asHoverEvent(UnaryOperator<Component> op) default @Nullable HoverEvent<?> Component.hoverEvent()Gets the hover event of this component. -
Uses of HoverEvent in net.kyori.adventure.text.event
Methods in net.kyori.adventure.text.event that return HoverEventModifier and TypeMethodDescriptionHoverEvent.asHoverEvent()HoverEvent.asHoverEvent(UnaryOperator<V> op) default HoverEvent<V> HoverEventSource.asHoverEvent()Represent this object as a hover event.HoverEventSource.asHoverEvent(UnaryOperator<V> op) Creates a hover event with value derived from this object.static <V> HoverEvent<V> HoverEvent.hoverEvent(HoverEvent.Action<V> action, V value) Creates a hover event.static HoverEvent<String> HoverEvent.showAchievement(String value) Creates a hover event that shows an achievement on hover.static HoverEvent<HoverEvent.ShowEntity> HoverEvent.showEntity(Keyed type, UUID id) Creates a hover event that show information about an entity on hover.static HoverEvent<HoverEvent.ShowEntity> HoverEvent.showEntity(Keyed type, UUID id, @Nullable Component name) Creates a hover event that show information about an entity on hover.static HoverEvent<HoverEvent.ShowEntity> HoverEvent.showEntity(Key type, UUID id) Creates a hover event that show information about an entity on hover.static HoverEvent<HoverEvent.ShowEntity> HoverEvent.showEntity(Key type, UUID id, @Nullable Component name) Creates a hover event that show information about an entity on hover.static HoverEvent<HoverEvent.ShowEntity> HoverEvent.showEntity(HoverEvent.ShowEntity entity) Creates a hover event that show information about an entity on hover.static HoverEvent<HoverEvent.ShowItem> Creates a hover event that shows an item on hover.static HoverEvent<HoverEvent.ShowItem> HoverEvent.showItem(Keyed item, @Range(from=0L,to=2147483647L) int count, Map<Key, ? extends DataComponentValue> dataComponents) Creates a hover event that shows an item on hover.static HoverEvent<HoverEvent.ShowItem> HoverEvent.showItem(Keyed item, @Range(from=0L,to=2147483647L) int count, @Nullable BinaryTagHolder nbt) Creates a hover event that shows an item on hover.static HoverEvent<HoverEvent.ShowItem> Creates a hover event that shows an item on hover.static HoverEvent<HoverEvent.ShowItem> HoverEvent.showItem(Key item, @Range(from=0L,to=2147483647L) int count, @Nullable BinaryTagHolder nbt) Creates a hover event that shows an item on hover.static HoverEvent<HoverEvent.ShowItem> HoverEvent.showItem(HoverEvent.ShowItem item) Creates a hover event that shows an item on hover.static HoverEvent<Component> Creates a hover event that shows text on hover.static HoverEvent<Component> HoverEvent.showText(ComponentLike text) Creates a hover event that shows text on hover.static <V> @Nullable HoverEvent<V> HoverEventSource.unbox(@Nullable HoverEventSource<V> source) Fetches aHoverEventfrom aHoverEventSource.Sets the hover event value.<C> HoverEvent<V> HoverEvent.withRenderedValue(ComponentRenderer<C> renderer, C context) Returns a hover event with the value rendered usingrendererwhen possible. -
Uses of HoverEvent in net.kyori.adventure.text.format
Methods in net.kyori.adventure.text.format that return HoverEventModifier and TypeMethodDescription@Nullable HoverEvent<?> Style.hoverEvent()Gets the hover event.@Nullable HoverEvent<?> StyleGetter.hoverEvent()Gets the hover event.