Package | Description |
---|---|
org.bukkit |
The root package of the Bukkit API, contains generalized API classes.
|
org.bukkit.block |
Classes used to manipulate the voxels in a
world ,
including special states. |
org.bukkit.configuration |
Classes dedicated to handling a plugin's runtime configuration.
|
org.bukkit.entity |
Interfaces for non-voxel objects that can exist in a
world , including all players, monsters, projectiles, etc. |
org.bukkit.inventory.meta |
The interfaces used when manipulating extra data can can be stored inside
item stacks . |
org.bukkit.scoreboard |
Interfaces used to manage the client side score display system.
|
Modifier and Type | Method and Description |
---|---|
static @NotNull OfflinePlayer |
Bukkit.getOfflinePlayer(@NotNull String name)
Deprecated.
Persistent storage of users should be by UUID as names are no longer
unique past a single session.
|
@NotNull OfflinePlayer |
Server.getOfflinePlayer(@NotNull String name)
Deprecated.
Persistent storage of users should be by UUID as names are no longer
unique past a single session.
|
static @NotNull OfflinePlayer |
Bukkit.getOfflinePlayer(@NotNull UUID id)
Gets the player by the given UUID, regardless if they are offline or
online.
|
@NotNull OfflinePlayer |
Server.getOfflinePlayer(@NotNull UUID id)
Gets the player by the given UUID, regardless if they are offline or
online.
|
static @Nullable OfflinePlayer |
Bukkit.getOfflinePlayerIfCached(@NotNull String name)
Gets the player by the given name, regardless if they are offline or
online.
|
@Nullable OfflinePlayer |
Server.getOfflinePlayerIfCached(@NotNull String name)
Gets the player by the given name, regardless if they are offline or
online.
|
static @NotNull OfflinePlayer[] |
Bukkit.getOfflinePlayers()
Gets every player that has ever played on this server.
|
@NotNull OfflinePlayer[] |
Server.getOfflinePlayers()
Gets every player that has ever played on this server.
|
Modifier and Type | Method and Description |
---|---|
@Nullable OfflinePlayer |
Skull.getOwningPlayer()
Get the player which owns the skull.
|
Modifier and Type | Method and Description |
---|---|
void |
Skull.setOwningPlayer(@NotNull OfflinePlayer player)
Set the player which owns the skull.
|
Modifier and Type | Method and Description |
---|---|
@Nullable OfflinePlayer |
ConfigurationSection.getOfflinePlayer(@NotNull String path)
Gets the requested OfflinePlayer by path.
|
@Nullable OfflinePlayer |
MemorySection.getOfflinePlayer(@NotNull String path) |
@Nullable OfflinePlayer |
ConfigurationSection.getOfflinePlayer(@NotNull String path,
@Nullable OfflinePlayer def)
Gets the requested
OfflinePlayer by path, returning a default
value if not found. |
@Nullable OfflinePlayer |
MemorySection.getOfflinePlayer(@NotNull String path,
@Nullable OfflinePlayer def) |
Modifier and Type | Method and Description |
---|---|
@Nullable OfflinePlayer |
ConfigurationSection.getOfflinePlayer(@NotNull String path,
@Nullable OfflinePlayer def)
Gets the requested
OfflinePlayer by path, returning a default
value if not found. |
@Nullable OfflinePlayer |
MemorySection.getOfflinePlayer(@NotNull String path,
@Nullable OfflinePlayer def) |
Modifier and Type | Interface and Description |
---|---|
interface |
Player
Represents a player, connected or not
|
Modifier and Type | Method and Description |
---|---|
@Nullable OfflinePlayer |
ZombieVillager.getConversionPlayer()
Gets the player who initiated the conversion.
|
Modifier and Type | Method and Description |
---|---|
void |
ZombieVillager.setConversionPlayer(@Nullable OfflinePlayer conversionPlayer)
Sets the player who initiated the conversion.
|
Modifier and Type | Method and Description |
---|---|
@Nullable OfflinePlayer |
SkullMeta.getOwningPlayer()
Gets the owner of the skull.
|
Modifier and Type | Method and Description |
---|---|
boolean |
SkullMeta.setOwningPlayer(@Nullable OfflinePlayer owner)
Sets the owner of the skull.
|
Modifier and Type | Method and Description |
---|---|
@NotNull OfflinePlayer |
Score.getPlayer()
Deprecated.
Scoreboards can contain entries that aren't players
|
Modifier and Type | Method and Description |
---|---|
void |
Team.addPlayer(@NotNull OfflinePlayer player)
Deprecated.
Teams can contain entries that aren't players
|
@Nullable Team |
Scoreboard.getPlayerTeam(@NotNull OfflinePlayer player)
Deprecated.
Scoreboards can contain entries that aren't players
|
@NotNull Score |
Objective.getScore(@NotNull OfflinePlayer player)
Deprecated.
Scoreboards can contain entries that aren't players
|
@NotNull Set<Score> |
Scoreboard.getScores(@NotNull OfflinePlayer player)
Deprecated.
Scoreboards can contain entries that aren't players
|
boolean |
Team.hasPlayer(@NotNull OfflinePlayer player)
Deprecated.
Teams can contain entries that aren't players
|
boolean |
Team.removePlayer(@NotNull OfflinePlayer player)
Deprecated.
Teams can contain entries that aren't players
|
void |
Scoreboard.resetScores(@NotNull OfflinePlayer player)
Deprecated.
Scoreboards can contain entries that aren't players
|
Copyright © 2021. All rights reserved.