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.entity |
Interfaces for non-voxel objects that can exist in a
world , including all players, monsters, projectiles, etc. |
org.bukkit.event.player | |
org.bukkit.event.raid |
Events related to raids. |
org.bukkit.event.weather |
Events relating to weather. |
org.bukkit.event.world | |
org.bukkit.generator |
Classes to facilitate
world generation
implementation. |
org.bukkit.map |
Classes to facilitate plugin handling of
map displays. |
org.bukkit.util |
Multi and single purpose classes to facilitate various programmatic
concepts.
|
org.bukkit.util.noise |
Classes dedicated to facilitating deterministic noise.
|
Modifier and Type | Method | Description |
---|---|---|
static @Nullable World |
Bukkit.createWorld(@NotNull WorldCreator creator) |
Creates or loads a world with the given name using the specified
options.
|
@Nullable World |
Server.createWorld(@NotNull WorldCreator creator) |
Creates or loads a world with the given name using the specified
options.
|
@Nullable World |
WorldCreator.createWorld() |
Creates a world with the specified options.
|
static @Nullable World |
Bukkit.getWorld(@NotNull String name) |
Gets the world with the given name.
|
static @Nullable World |
Bukkit.getWorld(@NotNull UUID uid) |
Gets the world from the given Unique ID.
|
@NotNull World |
Chunk.getWorld() |
Gets the world containing this chunk
|
@Nullable World |
Location.getWorld() |
Gets the world that this location resides in
|
@Nullable World |
Server.getWorld(@NotNull String name) |
Gets the world with the given name.
|
@Nullable World |
Server.getWorld(@NotNull UUID uid) |
Gets the world from the given Unique ID.
|
Modifier and Type | Method | Description |
---|---|---|
static @NotNull List<World> |
Bukkit.getWorlds() |
Gets a list of all worlds on this server.
|
@NotNull List<World> |
Server.getWorlds() |
Gets a list of all worlds on this server.
|
Modifier and Type | Method | Description |
---|---|---|
@NotNull WorldCreator |
WorldCreator.copy(@NotNull World world) |
Copies the options from the specified world
|
static ChunkGenerator.ChunkData |
Bukkit.createChunkData(@NotNull World world) |
Create a ChunkData for use in a generator.
|
ChunkGenerator.ChunkData |
Server.createChunkData(@NotNull World world) |
Create a ChunkData for use in a generator.
|
static @NotNull ItemStack |
Bukkit.createExplorerMap(@NotNull World world,
@NotNull Location location,
@NotNull StructureType structureType) |
Create a new explorer map targeting the closest nearby structure of a
given
StructureType . |
static @NotNull ItemStack |
Bukkit.createExplorerMap(@NotNull World world,
@NotNull Location location,
@NotNull StructureType structureType,
int radius,
boolean findUnexplored) |
Create a new explorer map targeting the closest nearby structure of a
given
StructureType . |
@NotNull ItemStack |
Server.createExplorerMap(@NotNull World world,
@NotNull Location location,
@NotNull StructureType structureType) |
Create a new explorer map targeting the closest nearby structure of a
given
StructureType . |
@NotNull ItemStack |
Server.createExplorerMap(@NotNull World world,
@NotNull Location location,
@NotNull StructureType structureType,
int radius,
boolean findUnexplored) |
Create a new explorer map targeting the closest nearby structure of a
given
StructureType . |
static @NotNull MapView |
Bukkit.createMap(@NotNull World world) |
Create a new map with an automatically assigned ID.
|
@NotNull MapView |
Server.createMap(@NotNull World world) |
Create a new map with an automatically assigned ID.
|
void |
Location.setWorld(@Nullable World world) |
Sets the world that this location resides in
|
static boolean |
Bukkit.unloadWorld(@NotNull World world,
boolean save) |
Unloads the given world.
|
boolean |
Server.unloadWorld(@NotNull World world,
boolean save) |
Unloads the given world.
|
Constructor | Description |
---|---|
Location(@Nullable World world,
double x,
double y,
double z) |
Constructs a new Location with the given coordinates
|
Location(@Nullable World world,
double x,
double y,
double z,
float yaw,
float pitch) |
Constructs a new Location with the given coordinates and direction
|
Modifier and Type | Method | Description |
---|---|---|
@NotNull World |
Block.getWorld() |
Gets the world which contains this Block
|
@NotNull World |
BlockState.getWorld() |
Gets the world which contains the block represented by this block state.
|
@Nullable World |
DoubleChest.getWorld() |
Modifier and Type | Method | Description |
---|---|---|
@NotNull World |
Entity.getWorld() |
Gets the current world this entity resides in
|
Modifier and Type | Method | Description |
---|---|---|
@NotNull World |
PlayerChangedWorldEvent.getFrom() |
Gets the world the player is switching from.
|
Constructor | Description |
---|---|
PlayerChangedWorldEvent(@NotNull Player player,
@NotNull World from) |
Constructor | Description |
---|---|
RaidEvent(@NotNull Raid raid,
@NotNull World world) |
|
RaidFinishEvent(@NotNull Raid raid,
@NotNull World world,
@NotNull List<Player> winners) |
|
RaidSpawnWaveEvent(@NotNull Raid raid,
@NotNull World world,
@Nullable Raider leader,
@NotNull List<Raider> raiders) |
|
RaidStopEvent(@NotNull Raid raid,
@NotNull World world,
@NotNull RaidStopEvent.Reason reason) |
|
RaidTriggerEvent(@NotNull Raid raid,
@NotNull World world,
@NotNull Player player) |
Modifier and Type | Field | Description |
---|---|---|
protected World |
WeatherEvent.world |
Modifier and Type | Method | Description |
---|---|---|
@NotNull World |
WeatherEvent.getWorld() |
Returns the World where this event is occurring
|
Constructor | Description |
---|---|
LightningStrikeEvent(@NotNull World world,
@NotNull LightningStrike bolt) |
Deprecated.
|
LightningStrikeEvent(@NotNull World world,
@NotNull LightningStrike bolt,
@NotNull LightningStrikeEvent.Cause cause) |
|
ThunderChangeEvent(@NotNull World world,
boolean to) |
|
WeatherChangeEvent(@NotNull World world,
boolean to) |
|
WeatherEvent(@NotNull World where) |
Modifier and Type | Method | Description |
---|---|---|
@NotNull World |
WorldEvent.getWorld() |
Gets the world primarily involved with this event
|
Constructor | Description |
---|---|
PortalCreateEvent(@NotNull List<BlockState> blocks,
@NotNull World world,
@NotNull PortalCreateEvent.CreateReason reason) |
Deprecated.
|
PortalCreateEvent(@NotNull List<BlockState> blocks,
@NotNull World world,
@Nullable Entity entity,
@NotNull PortalCreateEvent.CreateReason reason) |
|
SpawnChangeEvent(@NotNull World world,
@NotNull Location previousLocation) |
|
TimeSkipEvent(@NotNull World world,
@NotNull TimeSkipEvent.SkipReason skipReason,
@org.jetbrains.annotations.NotNull long skipAmount) |
|
WorldEvent(@NotNull World world) |
|
WorldInitEvent(@NotNull World world) |
|
WorldLoadEvent(@NotNull World world) |
|
WorldSaveEvent(@NotNull World world) |
|
WorldUnloadEvent(@NotNull World world) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
ChunkGenerator.canSpawn(@NotNull World world,
int x,
int z) |
Tests if the specified location is valid for a natural spawn position
|
protected @NotNull ChunkGenerator.ChunkData |
ChunkGenerator.createChunkData(@NotNull World world) |
Create a ChunkData for a world.
|
@NotNull ChunkGenerator.ChunkData |
ChunkGenerator.generateChunkData(@NotNull World world,
@NotNull Random random,
int x,
int z,
@NotNull ChunkGenerator.BiomeGrid biome) |
Shapes the chunk for the given coordinates.
|
@NotNull List<BlockPopulator> |
ChunkGenerator.getDefaultPopulators(@NotNull World world) |
Gets a list of default
BlockPopulator s to apply to a given
world |
@Nullable Location |
ChunkGenerator.getFixedSpawnLocation(@NotNull World world,
@NotNull Random random) |
Gets a fixed spawn location to use for a given world.
|
abstract void |
BlockPopulator.populate(@NotNull World world,
@NotNull Random random,
@NotNull Chunk source) |
Populates an area of blocks at or around the given chunk.
|
Modifier and Type | Method | Description |
---|---|---|
@Nullable World |
MapView.getWorld() |
Get the world that this map is associated with.
|
Modifier and Type | Method | Description |
---|---|---|
void |
MapView.setWorld(@NotNull World world) |
Set the world that this map is associated with.
|
Modifier and Type | Method | Description |
---|---|---|
@NotNull Location |
Vector.toLocation(@NotNull World world) |
Gets a Location version of this vector with yaw and pitch being 0.
|
@NotNull Location |
Vector.toLocation(@NotNull World world,
float yaw,
float pitch) |
Gets a Location version of this vector.
|
Constructor | Description |
---|---|
BlockIterator(@NotNull World world,
@NotNull Vector start,
@NotNull Vector direction,
double yOffset,
int maxDistance) |
Constructs the BlockIterator.
|
Constructor | Description |
---|---|
PerlinNoiseGenerator(@NotNull World world) |
Creates a seeded perlin noise generator for the given world
|
PerlinOctaveGenerator(@NotNull World world,
int octaves) |
Creates a perlin octave generator for the given world
|
SimplexNoiseGenerator(@NotNull World world) |
Creates a seeded simplex noise generator for the given world
|
SimplexOctaveGenerator(@NotNull World world,
int octaves) |
Creates a simplex octave generator for the given world
|
Copyright © 2020. All rights reserved.