Interface NamedAndIdentified

All Known Implementing Classes:
FakePlayer, Player

public interface NamedAndIdentified
An object with a Component name and a UUID identity.
  • Method Details

    • empty

      @NotNull static @NotNull NamedAndIdentified empty()
      Creates a NamedAndIdentified instance with an empty name and a random UUID.
      Returns:
      the named and identified instance
    • named

      @NotNull static @NotNull NamedAndIdentified named(@NotNull @NotNull String name)
      Creates a NamedAndIdentified instance with a given name and a random UUID.
      Parameters:
      name - the name
      Returns:
      the named and identified instance
    • named

      @NotNull static @NotNull NamedAndIdentified named(@NotNull @NotNull Component name)
      Creates a NamedAndIdentified instance with a given name and a random UUID.
      Parameters:
      name - the name
      Returns:
      the named and identified instance
    • identified

      @NotNull static @NotNull NamedAndIdentified identified(@NotNull @NotNull UUID uuid)
      Creates a NamedAndIdentified instance with an empty name and a given UUID.
      Parameters:
      uuid - the uuid
      Returns:
      the named and identified instance
    • of

      @NotNull static @NotNull NamedAndIdentified of(@NotNull @NotNull String name, @NotNull @NotNull UUID uuid)
      Creates a NamedAndIdentified instance with a given name and UUID.
      Parameters:
      name - the name
      uuid - the uuid
      Returns:
      the named and identified instance
    • of

      @NotNull static @NotNull NamedAndIdentified of(@NotNull @NotNull Component name, @NotNull @NotNull UUID uuid)
      Creates a NamedAndIdentified instance with a given name and UUID.
      Parameters:
      name - the name
      uuid - the uuid
      Returns:
      the named and identified instance
    • getName

      @NotNull @NotNull Component getName()
      Gets the name of this object.
      Returns:
      the name
    • getUuid

      @NotNull @NotNull UUID getUuid()
      Gets the UUID of this object.
      Returns:
      the uuid