Package | Description |
---|---|
net.tridentsdk.entity.living |
Entity classes that represent various world mobs, hostile and passive, including the Player class
|
net.tridentsdk.event.player |
Called when a player-based event occurs, such as an event that involves a player
|
net.tridentsdk.server.packets.play.out |
Packets related to the gameplay of the server sent from the server
|
net.tridentsdk.server.player |
Contains implementations related to TridentPlayer and the associcated OfflinePlayer classes
|
net.tridentsdk.server.world |
Implements classes in the package
net.tridentsdk.world .* package |
net.tridentsdk.world.settings |
Contains enum types describing the properties of a world
|
Modifier and Type | Method and Description |
---|---|
GameMode |
Player.gameMode()
Returns the GameMode the Player is in
|
Modifier and Type | Method and Description |
---|---|
void |
Player.setGameMode(GameMode mode)
Sets the player's gamemode to the specified gamemode
|
Modifier and Type | Method and Description |
---|---|
GameMode |
PlayerGameModeChangeEvent.currentGameMode() |
GameMode |
PlayerGameModeChangeEvent.newGameMode() |
Modifier and Type | Method and Description |
---|---|
void |
PlayerGameModeChangeEvent.setNewGamemode(GameMode gameMode) |
Constructor and Description |
---|
PlayerGameModeChangeEvent(Player player,
GameMode gameMode) |
Modifier and Type | Field and Description |
---|---|
protected GameMode |
PacketPlayOutJoinGame.gamemode |
Modifier and Type | Method and Description |
---|---|
GameMode |
PacketPlayOutJoinGame.gameMode() |
Modifier and Type | Field and Description |
---|---|
protected GameMode |
OfflinePlayer.gameMode
The gamemode the player is currently in
|
Modifier and Type | Method and Description |
---|---|
GameMode |
OfflinePlayer.gameMode() |
Modifier and Type | Method and Description |
---|---|
void |
TridentPlayer.setGameMode(GameMode mode) |
void |
OfflinePlayer.setGameMode(GameMode mode) |
Modifier and Type | Method and Description |
---|---|
GameMode |
TridentWorldSettings.defaultGameMode() |
Modifier and Type | Method and Description |
---|---|
void |
TridentWorldSettings.setGameMode(GameMode gameMode) |
Modifier and Type | Method and Description |
---|---|
GameMode |
WorldSettings.defaultGameMode()
Gets the default gamemode in a given chunk
|
GameMode |
WorldCreateOptions.defaultGameMode()
Obtains the default gamemode of the world created using these options
|
static GameMode |
GameMode.of(int i) |
static GameMode |
GameMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GameMode[] |
GameMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static byte |
GameMode.asByte(GameMode gameMode)
Returns the
byte value of the GameMode |
WorldCreateOptions |
WorldCreateOptions.gameMode(GameMode gameMode)
Sets the gamemode of the world to be generated
|
void |
WorldSettings.setGameMode(GameMode gameMode)
Sets the world game mode
|
Copyright © 2016. All rights reserved.