Class HoverEvent.ShowEntity
java.lang.Object
net.kyori.adventure.text.event.HoverEvent.ShowEntity
- Enclosing class:
HoverEvent<V>
The value of a
show_entity hover event.- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()id()Gets the id.Sets the id.@Nullable Componentname()Gets the name.Sets the name.static HoverEvent.ShowEntityshowEntity(Keyed type, UUID id) Creates.static HoverEvent.ShowEntityshowEntity(Keyed type, UUID id, @Nullable Component name) Creates.static HoverEvent.ShowEntityshowEntity(Key type, UUID id) Creates.static HoverEvent.ShowEntityshowEntity(Key type, UUID id, @Nullable Component name) Creates.toString()type()Gets the type.Sets the type.Sets the type.
-
Method Details
-
showEntity
Creates.- Parameters:
type- the typeid- the id- Returns:
- a
ShowEntity - Since:
- 4.14.0
-
showEntity
Creates.- Parameters:
type- the typeid- the id- Returns:
- a
ShowEntity - Since:
- 4.14.0
-
showEntity
Creates.- Parameters:
type- the typeid- the idname- the name- Returns:
- a
ShowEntity - Since:
- 4.14.0
-
showEntity
Creates.- Parameters:
type- the typeid- the idname- the name- Returns:
- a
ShowEntity - Since:
- 4.14.0
-
type
-
type
Sets the type.- Parameters:
type- the type- Returns:
- a
ShowEntity - Since:
- 4.0.0
-
type
Sets the type.- Parameters:
type- the type- Returns:
- a
ShowEntity - Since:
- 4.6.0
-
id
-
id
Sets the id.- Parameters:
id- the id- Returns:
- a
ShowEntity - Since:
- 4.0.0
-
name
-
name
Sets the name.- Parameters:
name- the name- Returns:
- a
ShowEntity - Since:
- 4.0.0
-
equals
-
hashCode
-
toString
-