接口 PlayerDTO
public interface PlayerDTO
Interface representing a Player Data Transfer Object (DTO).
-
嵌套类概要
嵌套类修饰符和类型接口说明static enumEnum representing the type of user interface preferred by the player. -
方法概要
修饰符和类型方法说明getId()Gets the ID of the player.Gets the last known name of the player.@NotNull URLGets the URL of the player's skin.@NotNull PlayerDTO.UI_TYPEGets the player's preferred user interface type.Gets the ID of the group title the player is using.getUuid()Gets the UUID of the player.voidsetUiPreference(PlayerDTO.UI_TYPE uiType) Sets the player's preferred user interface type.updateLastKnownName(@NotNull String name, @Nullable URL skinUrl) Updates the last known name of the player.
-
方法详细资料
-
getId
Integer getId()Gets the ID of the player.- 返回:
- the ID of the player
-
getUuid
UUID getUuid()Gets the UUID of the player.- 返回:
- the UUID of the player
-
getLastKnownName
String getLastKnownName()Gets the last known name of the player.- 返回:
- 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.- 参数:
name- the new last known name of the player- 返回:
- the updated player object
- 抛出:
SQLExceptionMalformedURLException
-
getUsingGroupTitleID
Integer getUsingGroupTitleID()Gets the ID of the group title the player is using.- 返回:
- the ID of the group title the player is using
-
getSkinUrl
Gets the URL of the player's skin.- 返回:
- the URL of the player's skin
- 抛出:
MalformedURLException
-
getUiPreference
Gets the player's preferred user interface type.- 返回:
- the preferred user interface type
-
setUiPreference
Sets the player's preferred user interface type.- 参数:
uiType- the preferred user interface type to set- 抛出:
SQLException- if an error occurs while updating the database
-