Interface NamedAndIdentified
- All Known Implementing Classes:
FakePlayer,Player
public interface NamedAndIdentified
An object with a
Component name and a UUID identity.-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull NamedAndIdentifiedempty()Creates aNamedAndIdentifiedinstance with an empty name and a random UUID.@NotNull net.kyori.adventure.text.ComponentgetName()Gets the name of this object.@NotNull UUIDgetUuid()Gets the UUID of this object.static @NotNull NamedAndIdentifiedidentified(@NotNull UUID uuid) Creates aNamedAndIdentifiedinstance with an empty name and a given UUID.static @NotNull NamedAndIdentifiedCreates aNamedAndIdentifiedinstance with a given name and a random UUID.static @NotNull NamedAndIdentifiednamed(@NotNull net.kyori.adventure.text.Component name) Creates aNamedAndIdentifiedinstance with a given name and a random UUID.static @NotNull NamedAndIdentifiedCreates aNamedAndIdentifiedinstance with a given name and UUID.static @NotNull NamedAndIdentifiedCreates aNamedAndIdentifiedinstance with a given name and UUID.
-
Method Details
-
empty
Creates aNamedAndIdentifiedinstance with an empty name and a random UUID.- Returns:
- the named and identified instance
-
named
Creates aNamedAndIdentifiedinstance 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 net.kyori.adventure.text.Component name) Creates aNamedAndIdentifiedinstance with a given name and a random UUID.- Parameters:
name- the name- Returns:
- the named and identified instance
-
identified
Creates aNamedAndIdentifiedinstance 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 aNamedAndIdentifiedinstance with a given name and UUID.- Parameters:
name- the nameuuid- the uuid- Returns:
- the named and identified instance
-
of
@NotNull static @NotNull NamedAndIdentified of(@NotNull @NotNull net.kyori.adventure.text.Component name, @NotNull @NotNull UUID uuid) Creates aNamedAndIdentifiedinstance with a given name and UUID.- Parameters:
name- the nameuuid- the uuid- Returns:
- the named and identified instance
-
getName
@NotNull @NotNull net.kyori.adventure.text.Component getName()Gets the name of this object.- Returns:
- the name
-
getUuid
Gets the UUID of this object.- Returns:
- the uuid
-