Class 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.Examinable
    The value of a show_entity hover event.
    Since:
    4.0.0
    • Method Detail

      • of

        @NotNull
        public static @NotNull HoverEvent.ShowEntity of​(@NotNull
                                                        @NotNull Key type,
                                                        @NotNull
                                                        @NotNull java.util.UUID id)
        Creates.
        Parameters:
        type - the type
        id - the id
        Returns:
        a ShowEntity
        Since:
        4.0.0
      • of

        @NotNull
        public static @NotNull HoverEvent.ShowEntity of​(@NotNull
                                                        @NotNull Keyed type,
                                                        @NotNull
                                                        @NotNull java.util.UUID id)
        Creates.
        Parameters:
        type - the type
        id - the id
        Returns:
        a ShowEntity
        Since:
        4.6.0
      • of

        @NotNull
        public static @NotNull HoverEvent.ShowEntity of​(@NotNull
                                                        @NotNull Key type,
                                                        @NotNull
                                                        @NotNull java.util.UUID id,
                                                        @Nullable
                                                        @Nullable Component name)
        Creates.
        Parameters:
        type - the type
        id - the id
        name - the name
        Returns:
        a ShowEntity
        Since:
        4.0.0
      • of

        @NotNull
        public static @NotNull HoverEvent.ShowEntity of​(@NotNull
                                                        @NotNull Keyed type,
                                                        @NotNull
                                                        @NotNull java.util.UUID id,
                                                        @Nullable
                                                        @Nullable Component name)
        Creates.
        Parameters:
        type - the type
        id - the id
        name - 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:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • examinableProperties

        @NotNull
        public @NotNull java.util.stream.Stream<? extends net.kyori.examination.ExaminableProperty> examinableProperties()
        Specified by:
        examinableProperties in interface net.kyori.examination.Examinable
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object