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