Class HoverEvent.ShowEntity

java.lang.Object
net.kyori.adventure.text.event.HoverEvent.ShowEntity
Enclosing class:
HoverEvent<V>

public static final class HoverEvent.ShowEntity extends Object
The value of a show_entity hover event.
Since:
4.0.0
  • Method Details

    • showEntity

      public static HoverEvent.ShowEntity showEntity(Key type, UUID id)
      Creates.
      Parameters:
      type - the type
      id - the id
      Returns:
      a ShowEntity
      Since:
      4.14.0
    • showEntity

      public static HoverEvent.ShowEntity showEntity(Keyed type, UUID id)
      Creates.
      Parameters:
      type - the type
      id - the id
      Returns:
      a ShowEntity
      Since:
      4.14.0
    • showEntity

      public static HoverEvent.ShowEntity showEntity(Key type, UUID id, @Nullable Component name)
      Creates.
      Parameters:
      type - the type
      id - the id
      name - the name
      Returns:
      a ShowEntity
      Since:
      4.14.0
    • showEntity

      public static HoverEvent.ShowEntity showEntity(Keyed type, UUID id, @Nullable Component name)
      Creates.
      Parameters:
      type - the type
      id - the id
      name - the name
      Returns:
      a ShowEntity
      Since:
      4.14.0
    • type

      public Key type()
      Gets the type.
      Returns:
      the type
      Since:
      4.0.0
    • type

      public HoverEvent.ShowEntity type(Key type)
      Sets the type.
      Parameters:
      type - the type
      Returns:
      a ShowEntity
      Since:
      4.0.0
    • type

      public HoverEvent.ShowEntity type(Keyed type)
      Sets the type.
      Parameters:
      type - the type
      Returns:
      a ShowEntity
      Since:
      4.6.0
    • id

      public UUID id()
      Gets the id.
      Returns:
      the id
      Since:
      4.0.0
    • id

      public HoverEvent.ShowEntity id(UUID id)
      Sets the id.
      Parameters:
      id - the id
      Returns:
      a ShowEntity
      Since:
      4.0.0
    • name

      public @Nullable Component name()
      Gets the name.
      Returns:
      the name
      Since:
      4.0.0
    • name

      public HoverEvent.ShowEntity name(@Nullable Component name)
      Sets the name.
      Parameters:
      name - the name
      Returns:
      a ShowEntity
      Since:
      4.0.0
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object