Change player info action enum to int

Read & write server id
Fix javadocs
This commit is contained in:
kashike
2018-10-13 00:13:48 -07:00
parent 33f333d8cc
commit 78abba56af
7 changed files with 40 additions and 38 deletions

View File

@@ -81,14 +81,18 @@ public interface Player extends CommandSource, InboundConnection, ChannelMessage
ConnectionRequestBuilder createConnectionRequest(@NonNull RegisteredServer server);
/**
* Gets a game profile properties of player
* @return a immutable list of properties
* Gets the player's profile properties.
*
* <p>The returned list may be unmodifiable.</p>
*
* @return the player's profile properties
*/
List<GameProfile.Property> getGameProfileProperties();
/**
* Sets a GameProfile properties({@link GameProfile.Property)
* @param properties a properties to set
* Sets the player's profile properties.
*
* @param properties the properties
*/
void setGameProfileProperties(List<GameProfile.Property> properties);
@@ -109,7 +113,7 @@ public interface Player extends CommandSource, InboundConnection, ChannelMessage
void clearHeaderAndFooter();
/**
* Returns {@link this} {@link Player}'s tab list.
* Returns the player's tab list.
* @return this player's tab list
*/
TabList getTabList();

View File

@@ -59,7 +59,7 @@ public interface TabListEntry {
/**
* Sets the latency for {@code this} entry to the specified value
* @see this#getLatency()
* @see #getLatency()
* @param latency to changed to
* @return {@code this}, for chaining
*/
@@ -74,13 +74,13 @@ public interface TabListEntry {
* <li>Adventure</li>
* <li>Spectator</li>
* </ol>
* @return
* @return the game mode
*/
int getGameMode();
/**
* Sets the game mode for {@code this} entry to the specified value
* @see this#getGameMode()
* @see #getGameMode()
* @param gameMode to change to
* @return {@code this}, for chaining
*/