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 ashow_entity
hover event.- Since:
- 4.0.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(@Nullable Object other)
@NotNull Stream<? extends net.kyori.examination.ExaminableProperty>
examinableProperties()
int
hashCode()
@NotNull UUID
id()
Gets the id.@NotNull HoverEvent.ShowEntity
id(@NotNull UUID id)
Sets the id.@Nullable Component
name()
Gets the name.@NotNull HoverEvent.ShowEntity
name(@Nullable Component name)
Sets the name.static @NotNull HoverEvent.ShowEntity
of(@NotNull Keyed type, @NotNull UUID id)
Creates.static @NotNull HoverEvent.ShowEntity
of(@NotNull Keyed type, @NotNull UUID id, @Nullable Component name)
Creates.static @NotNull HoverEvent.ShowEntity
of(@NotNull Key type, @NotNull UUID id)
Creates.static @NotNull HoverEvent.ShowEntity
of(@NotNull Key type, @NotNull UUID id, @Nullable Component name)
Creates.String
toString()
@NotNull Key
type()
Gets the type.@NotNull HoverEvent.ShowEntity
type(@NotNull Key type)
Sets the type.@NotNull HoverEvent.ShowEntity
type(@NotNull Keyed type)
Sets the type.
-
-
-
Method Detail
-
of
@NotNull public static @NotNull HoverEvent.ShowEntity of(@NotNull @NotNull Key type, @NotNull @NotNull UUID id)
Creates.- Parameters:
type
- the typeid
- the id- Returns:
- a
ShowEntity
- Since:
- 4.0.0
-
of
@NotNull public static @NotNull HoverEvent.ShowEntity of(@NotNull @NotNull Keyed type, @NotNull @NotNull UUID id)
Creates.- Parameters:
type
- the typeid
- the id- Returns:
- a
ShowEntity
- Since:
- 4.6.0
-
of
@NotNull public static @NotNull HoverEvent.ShowEntity of(@NotNull @NotNull Key type, @NotNull @NotNull UUID id, @Nullable @Nullable Component name)
Creates.- Parameters:
type
- the typeid
- the idname
- the name- Returns:
- a
ShowEntity
- Since:
- 4.0.0
-
of
@NotNull public static @NotNull HoverEvent.ShowEntity of(@NotNull @NotNull Keyed type, @NotNull @NotNull UUID id, @Nullable @Nullable Component name)
Creates.- Parameters:
type
- the typeid
- the idname
- the name- Returns:
- a
ShowEntity
- Since:
- 4.6.0
-
type
@NotNull public @NotNull Key type()
Gets the type.- Returns:
- the type
- Since:
- 4.0.0
-
type
@NotNull public @NotNull HoverEvent.ShowEntity type(@NotNull @NotNull Key type)
Sets the type.- Parameters:
type
- the type- Returns:
- a
ShowEntity
- Since:
- 4.0.0
-
type
@NotNull public @NotNull HoverEvent.ShowEntity type(@NotNull @NotNull Keyed type)
Sets the type.- Parameters:
type
- the type- Returns:
- a
ShowEntity
- Since:
- 4.6.0
-
id
@NotNull public @NotNull UUID id()
Gets the id.- Returns:
- the id
- Since:
- 4.0.0
-
id
@NotNull public @NotNull HoverEvent.ShowEntity id(@NotNull @NotNull UUID id)
Sets the id.- Parameters:
id
- the id- Returns:
- a
ShowEntity
- Since:
- 4.0.0
-
name
@Nullable public @Nullable Component name()
Gets the name.- Returns:
- the name
- Since:
- 4.0.0
-
name
@NotNull public @NotNull HoverEvent.ShowEntity name(@Nullable @Nullable Component name)
Sets the name.- Parameters:
name
- the name- Returns:
- a
ShowEntity
- Since:
- 4.0.0
-
examinableProperties
@NotNull public @NotNull Stream<? extends net.kyori.examination.ExaminableProperty> examinableProperties()
- Specified by:
examinableProperties
in interfacenet.kyori.examination.Examinable
-
-