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 Type Method Description booleanequals(@Nullable Object other)@NonNull Stream<? extends net.kyori.examination.ExaminableProperty>examinableProperties()inthashCode()@NonNull UUIDid()Gets the id.@NonNull HoverEvent.ShowEntityid(@NonNull UUID id)Sets the id.@Nullable Componentname()Gets the name.@NonNull HoverEvent.ShowEntityname(@Nullable Component name)Sets the name.static @NonNull HoverEvent.ShowEntityof(@NonNull Key type, @NonNull UUID id)Creates.static @NonNull HoverEvent.ShowEntityof(@NonNull Key type, @NonNull UUID id, @Nullable Component name)Creates.StringtoString()@NonNull Keytype()Gets the type.@NonNull HoverEvent.ShowEntitytype(@NonNull Key type)Sets the type.
- 
Method Details- 
ofCreates.- Parameters:
- type- the type
- id- the id
- Returns:
- a ShowEntity
- Since:
- 4.0.0
 
- 
ofpublic static @NonNull HoverEvent.ShowEntity of(@NonNull Key type, @NonNull UUID id, @Nullable Component name)Creates.- Parameters:
- type- the type
- id- the id
- name- the name
- Returns:
- a ShowEntity
- Since:
- 4.0.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
 
- 
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- Specified by:
- examinablePropertiesin interface- net.kyori.examination.Examinable
 
- 
toString
 
-