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