Uses of Interface
org.bukkit.World
Packages that use World
Package
Description
Arguments.
The root package of the Bukkit API, contains generalized API classes.
Classes used to manipulate the voxels in a
world
,
including special states.Interfaces for non-voxel objects that can exist in a
world
, including all players, monsters, projectiles, etc.Events
related to raids.Events
relating to weather.Classes to facilitate
world
generation
implementation.Classes involved in manipulating player inventories and item interactions.
Classes to facilitate plugin handling of
map
displays.Multi and single purpose classes to facilitate various programmatic
concepts.
Classes dedicated to facilitating deterministic noise.
-
Uses of World in com.destroystokyo.paper
Methods in com.destroystokyo.paper with parameters of type WorldModifier and TypeMethodDescriptionSets the location of where to spawn the particle -
Uses of World in com.destroystokyo.paper.brigadier
Methods in com.destroystokyo.paper.brigadier that return WorldModifier and TypeMethodDescription@Nullable World
BukkitBrigadierCommandSource.getBukkitWorld()
Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of World in com.destroystokyo.paper.event.entity
Methods in com.destroystokyo.paper.event.entity that return WorldModifier and TypeMethodDescriptionEntityAddToWorldEvent.getWorld()
EntityRemoveFromWorldEvent.getWorld()
Constructors in com.destroystokyo.paper.event.entity with parameters of type WorldModifierConstructorDescriptionEntityAddToWorldEvent
(Entity entity, World world) EntityRemoveFromWorldEvent
(Entity entity, World world) -
Uses of World in io.papermc.paper.command.brigadier.argument
Methods in io.papermc.paper.command.brigadier.argument that return types with arguments of type World -
Uses of World in io.papermc.paper.event.entity
Methods in io.papermc.paper.event.entity that return WorldModifier and TypeMethodDescriptionEntityPortalReadyEvent.getTargetWorld()
Gets the world this portal will teleport to.Methods in io.papermc.paper.event.entity with parameters of type WorldModifier and TypeMethodDescriptionvoid
EntityPortalReadyEvent.setTargetWorld
(@Nullable World targetWorld) Sets the world this portal will teleport to.Constructors in io.papermc.paper.event.entity with parameters of type WorldModifierConstructorDescriptionEntityPortalReadyEvent
(Entity entity, @Nullable World targetWorld, PortalType portalType) -
Uses of World in io.papermc.paper.event.world
Constructors in io.papermc.paper.event.world with parameters of type WorldModifierConstructorDescriptionStructuresLocateEvent
(World world, Location origin, List<Structure> structures, int radius, boolean findUnexplored) WorldDifficultyChangeEvent
(World world, @Nullable CommandSourceStack commandSource, Difficulty difficulty) WorldGameRuleChangeEvent
(World world, @Nullable CommandSender commandSender, GameRule<?> gameRule, String value) -
Uses of World in io.papermc.paper.event.world.border
Constructors in io.papermc.paper.event.world.border with parameters of type WorldModifierConstructorDescriptionWorldBorderBoundsChangeEvent
(World world, WorldBorder worldBorder, WorldBorderBoundsChangeEvent.Type type, double oldSize, double newSize, long duration) WorldBorderBoundsChangeFinishEvent
(World world, WorldBorder worldBorder, double oldSize, double newSize, double duration) WorldBorderCenterChangeEvent
(World world, WorldBorder worldBorder, Location oldCenter, Location newCenter) protected
WorldBorderEvent
(World world, WorldBorder worldBorder) -
Uses of World in io.papermc.paper.math
Methods in io.papermc.paper.math with parameters of type WorldModifier and TypeMethodDescriptiondefault Location
Position.toLocation
(World world) Creates a new location object at this position with the specified world -
Uses of World in io.papermc.paper.threadedregions.scheduler
Methods in io.papermc.paper.threadedregions.scheduler with parameters of type WorldModifier and TypeMethodDescriptionvoid
RegionScheduler.execute
(@NotNull Plugin plugin, @NotNull World world, int chunkX, int chunkZ, @NotNull Runnable run) Schedules a task to be executed on the region which owns the location.@NotNull ScheduledTask
RegionScheduler.run
(@NotNull Plugin plugin, @NotNull World world, int chunkX, int chunkZ, @NotNull Consumer<ScheduledTask> task) Schedules a task to be executed on the region which owns the location on the next tick.@NotNull ScheduledTask
RegionScheduler.runAtFixedRate
(@NotNull Plugin plugin, @NotNull World world, int chunkX, int chunkZ, @NotNull Consumer<ScheduledTask> task, long initialDelayTicks, long periodTicks) Schedules a repeating task to be executed on the region which owns the location after the initial delay with the specified period.@NotNull ScheduledTask
RegionScheduler.runDelayed
(@NotNull Plugin plugin, @NotNull World world, int chunkX, int chunkZ, @NotNull Consumer<ScheduledTask> task, long delayTicks) Schedules a task to be executed on the region which owns the location after the specified delay in ticks. -
Uses of World in org.bukkit
Methods in org.bukkit that return WorldModifier and TypeMethodDescriptionstatic @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.@NotNull World
Server.getRespawnWorld()
Gets the world that players respawn in.static @Nullable World
Gets the world with the given name.static @Nullable World
Gets the world from the given Unique ID.static @Nullable World
Gets the world from the given Keystatic @Nullable World
Bukkit.getWorld
(@NotNull NamespacedKey worldKey) Gets the world from the given NamespacedKey@NotNull World
Chunk.getWorld()
Gets the world containing this chunkLocation.getWorld()
Gets the world that this location resides in@Nullable World
Gets the world with the given name.@Nullable World
Gets the world from the given Unique ID.@Nullable World
Gets the world from the given Keydefault @Nullable World
Server.getWorld
(@NotNull NamespacedKey worldKey) Gets the world from the given NamespacedKey@Nullable World
WorldBorder.getWorld()
Get theWorld
in which the border resides.Methods in org.bukkit that return types with arguments of type WorldModifier and TypeMethodDescriptionBukkit.getWorlds()
Gets a list of all worlds on this server.Server.getWorlds()
Gets a list of all worlds on this server.Methods in org.bukkit with parameters of type WorldModifier and TypeMethodDescription@NotNull WorldCreator
Copies the options from the specified worldstatic @NotNull ItemStack
Get the crafted item using the list ofItemStack
provided.static @NotNull ItemStack
Bukkit.craftItem
(@NotNull ItemStack @NotNull [] craftingMatrix, @NotNull World world, @NotNull Player player) Get the crafted item using the list ofItemStack
provided.default @NotNull ItemStack
Get the crafted item using the list ofItemStack
provided.default @NotNull ItemStack
Server.craftItem
(@NotNull ItemStack @NotNull [] craftingMatrix, @NotNull World world, @NotNull Player player) Get the crafted item using the list ofItemStack
provided.static @NotNull ItemCraftResult
Bukkit.craftItemResult
(@NotNull ItemStack @NotNull [] craftingMatrix, @NotNull World world) Get the crafted item using the list ofItemStack
provided.static @NotNull ItemCraftResult
Bukkit.craftItemResult
(@NotNull ItemStack @NotNull [] craftingMatrix, @NotNull World world, @NotNull Player player) Get the crafted item using the list ofItemStack
provided.@NotNull ItemCraftResult
Server.craftItemResult
(@NotNull ItemStack @NotNull [] craftingMatrix, @NotNull World world) Get the crafted item using the list ofItemStack
provided.@NotNull ItemCraftResult
Server.craftItemResult
(@NotNull ItemStack @NotNull [] craftingMatrix, @NotNull World world, @NotNull Player player) Get the crafted item using the list ofItemStack
provided.static ChunkGenerator.ChunkData
Bukkit.createChunkData
(@NotNull World world) Create a ChunkData for use in a generator.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) Deprecated.static @NotNull ItemStack
Bukkit.createExplorerMap
(@NotNull World world, @NotNull Location location, @NotNull StructureType structureType, int radius, boolean findUnexplored) static @Nullable ItemStack
Bukkit.createExplorerMap
(@NotNull World world, @NotNull Location location, StructureType structureType, MapCursor.Type mapIcon) Create a new explorer map targeting the closest nearby structure of a givenStructureType
.static @Nullable ItemStack
Bukkit.createExplorerMap
(@NotNull World world, @NotNull Location location, StructureType structureType, MapCursor.Type mapIcon, int radius, boolean findUnexplored) Create a new explorer map targeting the closest nearby structure of a givenStructureType
.default @NotNull ItemStack
Server.createExplorerMap
(@NotNull World world, @NotNull Location location, @NotNull StructureType structureType) @NotNull ItemStack
Server.createExplorerMap
(@NotNull World world, @NotNull Location location, @NotNull StructureType structureType, int radius, boolean findUnexplored) default @Nullable ItemStack
Server.createExplorerMap
(@NotNull World world, @NotNull Location location, StructureType structureType, MapCursor.Type mapIcon) Create a new explorer map targeting the closest nearby structure of a givenStructureType
.@Nullable ItemStack
Server.createExplorerMap
(@NotNull World world, @NotNull Location location, StructureType structureType, MapCursor.Type mapIcon, int radius, boolean findUnexplored) Create a new explorer map targeting the closest nearby structure of a givenStructureType
.static @NotNull MapView
Create a new map with an automatically assigned ID.@NotNull MapView
Create a new map with an automatically assigned ID.default @NotNull Entity
UnsafeValues.deserializeEntity
(byte @NotNull [] data, @NotNull World world) Deprecated.Deserializes the entity from data.default @NotNull Entity
UnsafeValues.deserializeEntity
(byte @NotNull [] data, @NotNull World world, boolean preserveUUID) Deprecated.Deserializes the entity from data.@NotNull Entity
UnsafeValues.deserializeEntity
(byte @NotNull [] data, @NotNull World world, boolean preserveUUID, boolean preservePassengers) Deprecated.Deserializes the entity from data.static @Nullable Recipe
Bukkit.getCraftingRecipe
(@NotNull ItemStack @NotNull [] craftingMatrix, @NotNull World world) Get theRecipe
for the list of ItemStacks provided.@Nullable Recipe
Server.getCraftingRecipe
(@NotNull ItemStack @NotNull [] craftingMatrix, @NotNull World world) Get theRecipe
for the list of ItemStacks provided.static boolean
Bukkit.isOwnedByCurrentRegion
(@NotNull World world, int chunkX, int chunkZ) Returns whether the current thread is ticking a region and that the region being ticked owns the chunk at the specified world and chunk position.static boolean
Bukkit.isOwnedByCurrentRegion
(@NotNull World world, int chunkX, int chunkZ, int squareRadiusChunks) Returns whether the current thread is ticking a region and that the region being ticked owns the chunks centered at the specified world and chunk position within the specified square radius.static boolean
Bukkit.isOwnedByCurrentRegion
(@NotNull World world, int minChunkX, int minChunkZ, int maxChunkX, int maxChunkZ) Returns whether the current thread is ticking a region and that the region being ticked owns the chunks in the rectangle specified by the min and max parameters.static boolean
Bukkit.isOwnedByCurrentRegion
(@NotNull World world, Position position) Returns whether the current thread is ticking a region and that the region being ticked owns the chunk at the specified world and block position.static boolean
Bukkit.isOwnedByCurrentRegion
(@NotNull World world, Position position, int squareRadiusChunks) Returns whether the current thread is ticking a region and that the region being ticked owns the chunks centered at the specified block position within the specified square radius.boolean
Server.isOwnedByCurrentRegion
(@NotNull World world, int chunkX, int chunkZ) Returns whether the current thread is ticking a region and that the region being ticked owns the chunk at the specified world and chunk position.boolean
Server.isOwnedByCurrentRegion
(@NotNull World world, int chunkX, int chunkZ, int squareRadiusChunks) Returns whether the current thread is ticking a region and that the region being ticked owns the chunks centered at the specified world and chunk position within the specified square radius.boolean
Server.isOwnedByCurrentRegion
(@NotNull World world, int minChunkX, int minChunkZ, int maxChunkX, int maxChunkZ) Returns whether the current thread is ticking a region and that the region being ticked owns the chunks in the rectangle specified by the min and max parameters.boolean
Server.isOwnedByCurrentRegion
(@NotNull World world, Position position) Returns whether the current thread is ticking a region and that the region being ticked owns the chunk at the specified world and block position.boolean
Server.isOwnedByCurrentRegion
(@NotNull World world, Position position, int squareRadiusChunks) Returns whether the current thread is ticking a region and that the region being ticked owns the chunks centered at the specified block position within the specified square radius.void
Server.setRespawnWorld
(@NotNull World world) Sets the world that players respawn in.void
Sets the world that this location resides in@NotNull Location
Location.toLocation
(@NotNull World world) 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.Constructors in org.bukkit with parameters of type World -
Uses of World in org.bukkit.block
Methods in org.bukkit.block that return WorldModifier and TypeMethodDescription@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()
Methods in org.bukkit.block with parameters of type WorldModifier and TypeMethodDescriptionboolean
BlockType.isEnabledByFeature
(World world) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of World in org.bukkit.entity
Methods in org.bukkit.entity that return WorldModifier and TypeMethodDescription@NotNull World
Entity.getWorld()
Gets the current world this entity resides inMethods in org.bukkit.entity with parameters of type WorldModifier and TypeMethodDescription@NotNull Entity
EntitySnapshot.createEntity
(@NotNull World world) Creates an entity using this template. -
Uses of World in org.bukkit.event.player
Methods in org.bukkit.event.player that return WorldModifier and TypeMethodDescription@NotNull World
PlayerChangedWorldEvent.getFrom()
Gets the world the player is switching from.Constructors in org.bukkit.event.player with parameters of type WorldModifierConstructorDescriptionPlayerChangedWorldEvent
(@NotNull Player player, @NotNull World from) -
Uses of World in org.bukkit.event.raid
Constructors in org.bukkit.event.raid with parameters of type WorldModifierConstructorDescriptionprotected
RaidFinishEvent
(@NotNull Raid raid, @NotNull World world, @NotNull List<Player> winners) RaidSpawnWaveEvent
(@NotNull Raid raid, @NotNull World world, @NotNull 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) -
Uses of World in org.bukkit.event.weather
Fields in org.bukkit.event.weather declared as WorldMethods in org.bukkit.event.weather that return WorldModifier and TypeMethodDescriptionfinal @NotNull World
WeatherEvent.getWorld()
Returns the World where this event is occurringConstructors in org.bukkit.event.weather with parameters of type WorldModifierConstructorDescriptionLightningStrikeEvent
(@NotNull World world, @NotNull LightningStrike bolt) Deprecated, for removal: This API element is subject to removal in a future version.LightningStrikeEvent
(@NotNull World world, @NotNull LightningStrike bolt, @NotNull LightningStrikeEvent.Cause cause) ThunderChangeEvent
(@NotNull World world, boolean newThunderState) Deprecated, for removal: This API element is subject to removal in a future version.ThunderChangeEvent
(@NotNull World world, boolean newThunderState, @NotNull ThunderChangeEvent.Cause cause) WeatherChangeEvent
(@NotNull World world, boolean newWeatherState) Deprecated, for removal: This API element is subject to removal in a future version.WeatherChangeEvent
(@NotNull World world, boolean newWeatherState, @NotNull WeatherChangeEvent.Cause cause) protected
WeatherEvent
(@NotNull World where) -
Uses of World in org.bukkit.event.world
Fields in org.bukkit.event.world declared as WorldMethods in org.bukkit.event.world that return WorldModifier and TypeMethodDescription@NotNull World
WorldEvent.getWorld()
Gets the world primarily involved with this eventConstructors in org.bukkit.event.world with parameters of type WorldModifierConstructorDescriptionAsyncStructureGenerateEvent
(@NotNull World world, boolean async, @NotNull AsyncStructureGenerateEvent.Cause cause, @NotNull Structure structure, @NotNull BoundingBox boundingBox, int chunkX, int chunkZ) AsyncStructureSpawnEvent
(@NotNull World world, @NotNull Structure structure, @NotNull BoundingBox boundingBox, int chunkX, int chunkZ) LootGenerateEvent
(@NotNull World world, @Nullable Entity entity, @Nullable InventoryHolder inventoryHolder, @NotNull LootTable lootTable, @NotNull LootContext lootContext, @NotNull List<ItemStack> items, boolean plugin) PortalCreateEvent
(@NotNull List<BlockState> blocks, @NotNull World world, @Nullable Entity entity, @NotNull PortalCreateEvent.CreateReason reason) PortalCreateEvent
(@NotNull List<BlockState> blocks, @NotNull World world, @NotNull PortalCreateEvent.CreateReason reason) Deprecated, for removal: This API element is subject to removal in a future version.SpawnChangeEvent
(@NotNull World world, @NotNull Location previousLocation) TimeSkipEvent
(@NotNull World world, @NotNull TimeSkipEvent.SkipReason skipReason, long skipAmount) protected
WorldEvent
(@NotNull World world) protected
WorldEvent
(@NotNull World world, boolean isAsync) WorldInitEvent
(@NotNull World world) WorldLoadEvent
(@NotNull World world) WorldSaveEvent
(@NotNull World world) WorldUnloadEvent
(@NotNull World world) -
Uses of World in org.bukkit.generator
Methods in org.bukkit.generator that return WorldModifier and TypeMethodDescription@NotNull World
LimitedRegion.getWorld()
Gets theWorld
object this region represents.Methods in org.bukkit.generator with parameters of type WorldModifier and TypeMethodDescriptionboolean
Tests if the specified location is valid for a natural spawn positionprotected final @NotNull ChunkGenerator.ChunkData
ChunkGenerator.createChunkData
(@NotNull World world) Deprecated.ChunkGenerator.ChunkData
are now directly provided@NotNull ChunkGenerator.ChunkData
ChunkGenerator.generateChunkData
(@NotNull World world, @NotNull Random random, int x, int z, @NotNull ChunkGenerator.BiomeGrid biome) Deprecated.The generation is now split up and the new methods should be used, seeChunkGenerator
@NotNull List
<BlockPopulator> ChunkGenerator.getDefaultPopulators
(@NotNull World world) Gets a list of defaultBlockPopulator
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.void
-
Uses of World in org.bukkit.inventory
Methods in org.bukkit.inventory with parameters of type WorldModifier and TypeMethodDescription@NotNull ItemStack
ItemFactory.enchantItem
(@NotNull World world, @NotNull ItemStack item, int level, boolean allowTreasures) boolean
ItemType.isEnabledByFeature
(World world) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of World in org.bukkit.map
Methods in org.bukkit.map that return WorldModifier and TypeMethodDescription@Nullable World
MapView.getWorld()
Get the world that this map is associated with.Methods in org.bukkit.map with parameters of type World -
Uses of World in org.bukkit.util
Methods in org.bukkit.util with parameters of type WorldModifier and TypeMethodDescription@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.Constructors in org.bukkit.util with parameters of type WorldModifierConstructorDescriptionBlockIterator
(@NotNull World world, @NotNull Vector start, @NotNull Vector direction, double yOffset, int maxDistance) Constructs the BlockIterator. -
Uses of World in org.bukkit.util.noise
Constructors in org.bukkit.util.noise with parameters of type WorldModifierConstructorDescriptionPerlinNoiseGenerator
(@NotNull World world) Creates a seeded perlin noise generator for the given worldPerlinOctaveGenerator
(@NotNull World world, int octaves) Creates a perlin octave generator for the given worldSimplexNoiseGenerator
(@NotNull World world) Creates a seeded simplex noise generator for the given worldSimplexOctaveGenerator
(@NotNull World world, int octaves) Creates a simplex octave generator for the given world
Bukkit.createExplorerMap(World, Location, org.bukkit.generator.structure.StructureType, org.bukkit.map.MapCursor.Type)