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 java.lang.Object implements net.kyori.examination.ExaminableThe value of ashow_entityhover event.- Since:
- 4.0.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(@Nullable java.lang.Object other)@NotNull java.util.stream.Stream<? extends net.kyori.examination.ExaminableProperty>examinableProperties()inthashCode()@NotNull java.util.UUIDid()Gets the id.@NotNull HoverEvent.ShowEntityid(@NotNull java.util.UUID id)Sets the id.@Nullable Componentname()Gets the name.@NotNull HoverEvent.ShowEntityname(@Nullable Component name)Sets the name.static @NotNull HoverEvent.ShowEntityof(@NotNull Keyed type, @NotNull java.util.UUID id)Deprecated.for removal since 4.14.0, useshowEntity(Keyed, UUID)instead.static @NotNull HoverEvent.ShowEntityof(@NotNull Keyed type, @NotNull java.util.UUID id, @Nullable Component name)Deprecated.for removal since 4.14.0, useshowEntity(Keyed, UUID, Component)instead.static @NotNull HoverEvent.ShowEntityof(@NotNull Key type, @NotNull java.util.UUID id)Deprecated.for removal since 4.14.0, useshowEntity(Key, UUID)instead.static @NotNull HoverEvent.ShowEntityof(@NotNull Key type, @NotNull java.util.UUID id, @Nullable Component name)Deprecated.for removal since 4.14.0, useshowEntity(Key, UUID, Component)instead.static @NotNull HoverEvent.ShowEntityshowEntity(@NotNull Keyed type, @NotNull java.util.UUID id)Creates.static @NotNull HoverEvent.ShowEntityshowEntity(@NotNull Keyed type, @NotNull java.util.UUID id, @Nullable Component name)Creates.static @NotNull HoverEvent.ShowEntityshowEntity(@NotNull Key type, @NotNull java.util.UUID id)Creates.static @NotNull HoverEvent.ShowEntityshowEntity(@NotNull Key type, @NotNull java.util.UUID id, @Nullable Component name)Creates.java.lang.StringtoString()@NotNull Keytype()Gets the type.@NotNull HoverEvent.ShowEntitytype(@NotNull Key type)Sets the type.@NotNull HoverEvent.ShowEntitytype(@NotNull Keyed type)Sets the type.
-
-
-
Method Detail
-
showEntity
@NotNull public static @NotNull HoverEvent.ShowEntity showEntity(@NotNull @NotNull Key type, @NotNull @NotNull java.util.UUID id)
Creates.- Parameters:
type- the typeid- 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 java.util.UUID id)
Deprecated.for removal since 4.14.0, useshowEntity(Key, UUID)instead.Creates.- Parameters:
type- the typeid- the id- Returns:
- a
ShowEntity - Since:
- 4.0.0
-
showEntity
@NotNull public static @NotNull HoverEvent.ShowEntity showEntity(@NotNull @NotNull Keyed type, @NotNull @NotNull java.util.UUID id)
Creates.- Parameters:
type- the typeid- 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 java.util.UUID id)
Deprecated.for removal since 4.14.0, useshowEntity(Keyed, UUID)instead.Creates.- Parameters:
type- the typeid- the id- Returns:
- a
ShowEntity - Since:
- 4.6.0
-
showEntity
@NotNull public static @NotNull HoverEvent.ShowEntity showEntity(@NotNull @NotNull Key type, @NotNull @NotNull java.util.UUID id, @Nullable @Nullable Component name)
Creates.- Parameters:
type- the typeid- the idname- 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 java.util.UUID id, @Nullable @Nullable Component name)
Deprecated.for removal since 4.14.0, useshowEntity(Key, UUID, Component)instead.Creates.- Parameters:
type- the typeid- the idname- the name- Returns:
- a
ShowEntity - Since:
- 4.0.0
-
showEntity
@NotNull public static @NotNull HoverEvent.ShowEntity showEntity(@NotNull @NotNull Keyed type, @NotNull @NotNull java.util.UUID id, @Nullable @Nullable Component name)
Creates.- Parameters:
type- the typeid- the idname- 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 java.util.UUID id, @Nullable @Nullable Component name)
Deprecated.for removal since 4.14.0, useshowEntity(Keyed, UUID, Component)instead.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 java.util.UUID id()
Gets the id.- Returns:
- the id
- Since:
- 4.0.0
-
id
@NotNull public @NotNull HoverEvent.ShowEntity id(@NotNull @NotNull java.util.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
-
equals
public boolean equals(@Nullable @Nullable java.lang.Object other)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
examinableProperties
@NotNull public @NotNull java.util.stream.Stream<? extends net.kyori.examination.ExaminableProperty> examinableProperties()
- Specified by:
examinablePropertiesin interfacenet.kyori.examination.Examinable
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-