Package cn.lunadeer.dominion.api.dtos
Interface PlayerDTO
public interface PlayerDTO
Interface representing a Player Data Transfer Object (DTO).
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetId()Gets the ID of the player.Gets the last known name of the player.@NotNull URLGets the URL of the player's skin.Gets the ID of the group title the player is using.getUuid()Gets the UUID of the player.updateLastKnownName(@NotNull String name, @Nullable URL skinUrl) Updates the last known name of the player.
-
Field Details
-
UNKNOWN
-
-
Method Details
-
getId
Integer getId()Gets the ID of the player.- Returns:
- the ID of the player
-
getUuid
UUID getUuid()Gets the UUID of the player.- Returns:
- the UUID of the player
-
getLastKnownName
String getLastKnownName()Gets the last known name of the player.- Returns:
- the last known name of the player
-
updateLastKnownName
PlayerDTO updateLastKnownName(@NotNull @NotNull String name, @Nullable @Nullable URL skinUrl) throws SQLException, MalformedURLException Updates the last known name of the player. Returns the updated player object.- Parameters:
name- the new last known name of the player- Returns:
- the updated player object
- Throws:
SQLExceptionMalformedURLException
-
getUsingGroupTitleID
Integer getUsingGroupTitleID()Gets the ID of the group title the player is using.- Returns:
- the ID of the group title the player is using
-
getSkinUrl
Gets the URL of the player's skin.- Returns:
- the URL of the player's skin
- Throws:
MalformedURLException
-