Interface NamedAndIdentified
- All Known Implementing Classes:
Player
public interface NamedAndIdentified
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull NamedAndIdentifiedempty()Creates aNamedAndIdentifiedinstance with an empty name and a random UUID.@NotNull 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 NamedAndIdentifiedCreates 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
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 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
Gets the name of this object.- Returns:
- the name
-
getUuid
Gets the UUID of this object.- Returns:
- the uuid
-