Interface NamedAndIdentified
- All Known Implementing Classes:
Player
public interface NamedAndIdentified
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull NamedAndIdentified
empty()
Creates aNamedAndIdentified
instance with an empty name and a random UUID.@NotNull Component
getName()
Gets the name of this object.@NotNull UUID
getUuid()
Gets the UUID of this object.static @NotNull NamedAndIdentified
identified
(@NotNull UUID uuid) Creates aNamedAndIdentified
instance with an empty name and a given UUID.static @NotNull NamedAndIdentified
Creates aNamedAndIdentified
instance with a given name and a random UUID.static @NotNull NamedAndIdentified
Creates aNamedAndIdentified
instance with a given name and a random UUID.static @NotNull NamedAndIdentified
Creates aNamedAndIdentified
instance with a given name and UUID.static @NotNull NamedAndIdentified
Creates aNamedAndIdentified
instance with a given name and UUID.
-
Method Details
-
empty
Creates aNamedAndIdentified
instance with an empty name and a random UUID.- Returns:
- the named and identified instance
-
named
Creates aNamedAndIdentified
instance with a given name and a random UUID.- Parameters:
name
- the name- Returns:
- the named and identified instance
-
named
Creates aNamedAndIdentified
instance with a given name and a random UUID.- Parameters:
name
- the name- Returns:
- the named and identified instance
-
identified
Creates aNamedAndIdentified
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 aNamedAndIdentified
instance 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 aNamedAndIdentified
instance 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
-