Package | Description |
---|---|
org.bukkit |
The root package of the Bukkit API, contains generalized API classes.
|
org.bukkit.entity |
Interfaces for non-voxel objects that can exist in a
world , including all players, monsters, projectiles, etc. |
org.bukkit.event.player |
Modifier and Type | Method and Description |
---|---|
static @Nullable GameMode |
GameMode.getByValue(int value)
Deprecated.
Magic value
|
static @NotNull GameMode |
Bukkit.getDefaultGameMode()
Gets the default
GameMode for new players. |
@NotNull GameMode |
Server.getDefaultGameMode()
Gets the default
GameMode for new players. |
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 void |
Bukkit.setDefaultGameMode(@NotNull GameMode mode)
Sets the default
GameMode for new players. |
void |
Server.setDefaultGameMode(@NotNull GameMode mode)
Sets the default
GameMode for new players. |
Modifier and Type | Method and Description |
---|---|
@NotNull GameMode |
HumanEntity.getGameMode()
Gets this human's current
GameMode |
Modifier and Type | Method and Description |
---|---|
void |
HumanEntity.setGameMode(@NotNull GameMode mode)
Sets this human's current
GameMode |
Modifier and Type | Method and Description |
---|---|
@NotNull GameMode |
PlayerGameModeChangeEvent.getNewGameMode()
Gets the GameMode the player is switched to.
|
Constructor and Description |
---|
PlayerGameModeChangeEvent(@NotNull Player player,
@NotNull GameMode newGameMode)
Deprecated.
|
PlayerGameModeChangeEvent(@NotNull Player player,
@NotNull GameMode newGameMode,
@NotNull PlayerGameModeChangeEvent.Cause cause,
net.kyori.adventure.text.Component cancelMessage) |
Copyright © 2021. All rights reserved.