Package net.kyori.adventure.text.event
Class HoverEvent.ShowEntity
java.lang.Object
net.kyori.adventure.text.event.HoverEvent.ShowEntity
- All Implemented Interfaces:
- net.kyori.examination.Examinable
- Enclosing class:
- HoverEvent<V>
public static final class HoverEvent.ShowEntity
extends Object
implements net.kyori.examination.Examinable
The value of a 
show_entity hover event.- Since:
- 4.0.0
- 
Method SummaryModifier and TypeMethodDescriptionboolean@NotNull Stream<? extends net.kyori.examination.ExaminableProperty>inthashCode()@NotNull UUIDid()Gets the id.@NotNull HoverEvent.ShowEntitySets the id.@Nullable Componentname()Gets the name.@NotNull HoverEvent.ShowEntitySets the name.static @NotNull HoverEvent.ShowEntityDeprecated.static @NotNull HoverEvent.ShowEntityDeprecated.for removal since 4.14.0, useshowEntity(Keyed, UUID, Component)instead.static @NotNull HoverEvent.ShowEntityDeprecated.for removal since 4.14.0, useshowEntity(Key, UUID)instead.static @NotNull HoverEvent.ShowEntityDeprecated.for removal since 4.14.0, useshowEntity(Key, UUID, Component)instead.static @NotNull HoverEvent.ShowEntityshowEntity(@NotNull Keyed type, @NotNull UUID id) Creates.static @NotNull HoverEvent.ShowEntityshowEntity(@NotNull Keyed type, @NotNull UUID id, @Nullable Component name) Creates.static @NotNull HoverEvent.ShowEntityshowEntity(@NotNull Key type, @NotNull UUID id) Creates.static @NotNull HoverEvent.ShowEntityshowEntity(@NotNull Key type, @NotNull UUID id, @Nullable Component name) Creates.toString()@NotNull Keytype()Gets the type.@NotNull HoverEvent.ShowEntitySets the type.@NotNull HoverEvent.ShowEntitySets the type.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.kyori.examination.ExaminableexaminableName, examine
- 
Method Details- 
showEntity@NotNull public static @NotNull HoverEvent.ShowEntity showEntity(@NotNull @NotNull Key type, @NotNull @NotNull UUID id) Creates.- Parameters:
- type- the type
- id- the id
- Returns:
- a ShowEntity
- Since:
- 4.14.0
 
- 
of@Deprecated @ScheduledForRemoval(inVersion="5.0.0") @NotNull public static @NotNull HoverEvent.ShowEntity of(@NotNull @NotNull Key type, @NotNull @NotNull UUID id) Deprecated.for removal since 4.14.0, useshowEntity(Key, UUID)instead.Creates.- Parameters:
- type- the type
- id- the id
- Returns:
- a ShowEntity
- Since:
- 4.0.0
 
- 
showEntity@NotNull public static @NotNull HoverEvent.ShowEntity showEntity(@NotNull @NotNull Keyed type, @NotNull @NotNull UUID id) Creates.- Parameters:
- type- the type
- id- the id
- Returns:
- a ShowEntity
- Since:
- 4.14.0
 
- 
of@Deprecated @ScheduledForRemoval(inVersion="5.0.0") @NotNull public static @NotNull HoverEvent.ShowEntity of(@NotNull @NotNull Keyed type, @NotNull @NotNull UUID id) Deprecated.for removal since 4.14.0, useshowEntity(Keyed, UUID)instead.Creates.- Parameters:
- type- the type
- id- the id
- Returns:
- a ShowEntity
- Since:
- 4.6.0
 
- 
showEntity@NotNull public static @NotNull HoverEvent.ShowEntity showEntity(@NotNull @NotNull Key type, @NotNull @NotNull UUID id, @Nullable @Nullable Component name) Creates.- Parameters:
- type- the type
- id- the id
- name- the name
- Returns:
- a ShowEntity
- Since:
- 4.14.0
 
- 
of@Deprecated @ScheduledForRemoval(inVersion="5.0.0") @NotNull public static @NotNull HoverEvent.ShowEntity of(@NotNull @NotNull Key type, @NotNull @NotNull UUID id, @Nullable @Nullable Component name) Deprecated.for removal since 4.14.0, useshowEntity(Key, UUID, Component)instead.Creates.- Parameters:
- type- the type
- id- the id
- name- the name
- Returns:
- a ShowEntity
- Since:
- 4.0.0
 
- 
showEntity@NotNull public static @NotNull HoverEvent.ShowEntity showEntity(@NotNull @NotNull Keyed type, @NotNull @NotNull UUID id, @Nullable @Nullable Component name) Creates.- Parameters:
- type- the type
- id- the id
- name- the name
- Returns:
- a ShowEntity
- Since:
- 4.14.0
 
- 
of@Deprecated @ScheduledForRemoval(inVersion="5.0.0") @NotNull public static @NotNull HoverEvent.ShowEntity of(@NotNull @NotNull Keyed type, @NotNull @NotNull UUID id, @Nullable @Nullable Component name) Deprecated.for removal since 4.14.0, useshowEntity(Keyed, UUID, Component)instead.Creates.- Parameters:
- type- the type
- id- the id
- name- the name
- Returns:
- a ShowEntity
- Since:
- 4.6.0
 
- 
typeGets the type.- Returns:
- the type
- Since:
- 4.0.0
 
- 
typeSets the type.- Parameters:
- type- the type
- Returns:
- a ShowEntity
- Since:
- 4.0.0
 
- 
typeSets the type.- Parameters:
- type- the type
- Returns:
- a ShowEntity
- Since:
- 4.6.0
 
- 
idGets the id.- Returns:
- the id
- Since:
- 4.0.0
 
- 
idSets the id.- Parameters:
- id- the id
- Returns:
- a ShowEntity
- Since:
- 4.0.0
 
- 
nameGets the name.- Returns:
- the name
- Since:
- 4.0.0
 
- 
nameSets the name.- Parameters:
- name- the name
- Returns:
- a ShowEntity
- Since:
- 4.0.0
 
- 
equals
- 
hashCodepublic int hashCode()
- 
examinableProperties@NotNull public @NotNull Stream<? extends net.kyori.examination.ExaminableProperty> examinableProperties()- Specified by:
- examinablePropertiesin interface- net.kyori.examination.Examinable
 
- 
toString
 
- 
showEntity(Keyed, UUID)instead.