Uses of Interface
org.bukkit.World
Package
Description
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.Classes dedicated to handling data pack information.
Multi and single purpose classes to facilitate various programmatic
concepts.
Classes dedicated to facilitating deterministic noise.
-
Uses of World in com.destroystokyo.paper
Modifier and TypeMethodDescriptionSets the location of where to spawn the particle -
Uses of World in com.destroystokyo.paper.brigadier
Modifier and TypeMethodDescriptionBukkitBrigadierCommandSource.getBukkitWorld()
Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of World in com.destroystokyo.paper.event.entity
Modifier and TypeMethodDescriptionEntityAddToWorldEvent.getWorld()
EntityRemoveFromWorldEvent.getWorld()
ModifierConstructorDescriptionEntityAddToWorldEvent
(@NotNull Entity entity, @NotNull World world) EntityRemoveFromWorldEvent
(@NotNull Entity entity, @NotNull World world) -
Uses of World in io.papermc.paper.command.brigadier.argument
-
Uses of World in io.papermc.paper.event.entity
Modifier and TypeMethodDescriptionEntityPortalReadyEvent.getTargetWorld()
Gets the world this portal will teleport to.Modifier and TypeMethodDescriptionvoid
EntityPortalReadyEvent.setTargetWorld
(@Nullable World targetWorld) Sets the world this portal will teleport to.ModifierConstructorDescriptionEntityPortalReadyEvent
(@NotNull Entity entity, @Nullable World targetWorld, @NotNull PortalType portalType) -
Uses of World in io.papermc.paper.event.world
ModifierConstructorDescriptionStructureLocateEvent
(@NotNull World world, @NotNull Location origin, @NotNull StructureType structureType, int radius, boolean findUnexplored) Deprecated, for removal: This API element is subject to removal in a future version.StructuresLocateEvent
(@NotNull World world, @NotNull Location origin, @NotNull List<Structure> structures, int radius, boolean findUnexplored) WorldGameRuleChangeEvent
(@NotNull World world, @Nullable CommandSender commandSender, @NotNull GameRule<?> gameRule, @NotNull String value) -
Uses of World in io.papermc.paper.event.world.border
ModifierConstructorDescriptionWorldBorderBoundsChangeEvent
(@NotNull World world, @NotNull WorldBorder worldBorder, @NotNull WorldBorderBoundsChangeEvent.Type type, double oldSize, double newSize, long duration) WorldBorderBoundsChangeFinishEvent
(@NotNull World world, @NotNull WorldBorder worldBorder, double oldSize, double newSize, double duration) WorldBorderCenterChangeEvent
(@NotNull World world, @NotNull WorldBorder worldBorder, @NotNull Location oldCenter, @NotNull Location newCenter) protected
WorldBorderEvent
(@NotNull World world, @NotNull WorldBorder worldBorder) -
Uses of World in io.papermc.paper.math
Modifier and TypeMethodDescriptionPosition.toLocation
(@NotNull World world) Creates a new location object at this position with the specified world -
Uses of World in io.papermc.paper.threadedregions.scheduler
Modifier 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.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.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.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
Modifier and TypeMethodDescriptionBukkit.createWorld
(@NotNull WorldCreator creator) Creates or loads a world with the given name using the specified options.Server.createWorld
(@NotNull WorldCreator creator) Creates or loads a world with the given name using the specified options.WorldCreator.createWorld()
Creates a world with the specified options.Gets the world with the given name.Gets the world from the given Unique ID.Bukkit.getWorld
(@NotNull NamespacedKey worldKey) Gets the world from the given NamespacedKeyChunk.getWorld()
Gets the world containing this chunkLocation.getWorld()
Gets the world that this location resides inGets the world with the given name.Gets the world from the given Unique ID.Server.getWorld
(@NotNull NamespacedKey worldKey) Gets the world from the given NamespacedKeyWorldBorder.getWorld()
Get theWorld
in which the border resides.Modifier and TypeMethodDescriptionBukkit.getWorlds()
Gets a list of all worlds on this server.Server.getWorlds()
Gets a list of all worlds on this server.Modifier and TypeMethodDescriptionCopies the options from the specified worldGet the crafted item using the list ofItemStack
provided.Get the crafted item using the list ofItemStack
provided.Get the crafted item using the list ofItemStack
provided.Get the crafted item using the list ofItemStack
provided.static @NotNull ItemCraftResult
Bukkit.craftItemResult
(@NotNull ItemStack[] craftingMatrix, @NotNull World world) Get the crafted item using the list ofItemStack
provided.static @NotNull ItemCraftResult
Bukkit.craftItemResult
(@NotNull ItemStack[] craftingMatrix, @NotNull World world, @NotNull Player player) Get the crafted item using the list ofItemStack
provided.Server.craftItemResult
(@NotNull ItemStack[] craftingMatrix, @NotNull World world) Get the crafted item using the list ofItemStack
provided.Server.craftItemResult
(@NotNull ItemStack[] 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.Bukkit.createExplorerMap
(@NotNull World world, @NotNull Location location, @NotNull StructureType structureType) Deprecated.Bukkit.createExplorerMap
(@NotNull World world, @NotNull Location location, @NotNull StructureType structureType, int radius, boolean findUnexplored) 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
.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
.Server.createExplorerMap
(@NotNull World world, @NotNull Location location, @NotNull StructureType structureType) Server.createExplorerMap
(@NotNull World world, @NotNull Location location, @NotNull StructureType structureType, int radius, boolean findUnexplored) 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
.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
.Create a new map with an automatically assigned ID.Create a new map with an automatically assigned ID.static ChunkGenerator.ChunkData
Bukkit.createVanillaChunkData
(@NotNull World world, int x, int z) Deprecated, for removal: This API element is subject to removal in a future version.The new multi-stage worldgen API allows a similar effect by overriding all of the "shouldGenerate..." methods to return true, and then modifying the chunkdata in a later stage such as surface or bedrock generation.Server.createVanillaChunkData
(@NotNull World world, int x, int z) Deprecated, for removal: This API element is subject to removal in a future version.The new multi-stage worldgen API allows a similar effect by overriding all of the "shouldGenerate..." methods to return true, and then modifying the chunkdata in a later stage such as surface or bedrock generation.default Entity
UnsafeValues.deserializeEntity
(byte[] data, World world) Deprecated.UnsafeValues.deserializeEntity
(byte[] data, World world, boolean preserveUUID) Deprecated.Bukkit.getCraftingRecipe
(@NotNull ItemStack[] craftingMatrix, @NotNull World world) Get theRecipe
for the list of ItemStacks provided.Server.getCraftingRecipe
(@NotNull ItemStack[] craftingMatrix, @NotNull World world) Get theRecipe
for the list of ItemStacks provided.boolean
Material.isEnabledByFeature
(@NotNull World world) Gets if the Material is enabled by the features in a world.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, 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, 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
Sets the world that this location resides inLocation.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. -
Uses of World in org.bukkit.block
Modifier and TypeMethodDescriptionBlock.getWorld()
Gets the world which contains this BlockBlockState.getWorld()
Gets the world which contains the block represented by this block state.DoubleChest.getWorld()
Modifier and TypeMethodDescriptionboolean
BlockType.isEnabledByFeature
(@NotNull World world) Gets if the BlockType is enabled by the features in a world. -
Uses of World in org.bukkit.entity
Modifier and TypeMethodDescriptionEntity.getWorld()
Gets the current world this entity resides inModifier and TypeMethodDescriptionEntitySnapshot.createEntity
(@NotNull World world) Creates an entity using this template.boolean
EntityType.isEnabledByFeature
(@NotNull World world) Gets if this EntityType is enabled by feature in a world. -
Uses of World in org.bukkit.event.player
Modifier and TypeMethodDescriptionPlayerChangedWorldEvent.getFrom()
Gets the world the player is switching from.ModifierConstructorDescriptionPlayerChangedWorldEvent
(@NotNull Player player, @NotNull World from) -
Uses of World in org.bukkit.event.raid
-
Uses of World in org.bukkit.event.weather
Modifier and TypeMethodDescriptionWeatherEvent.getWorld()
Returns the World where this event is occurringModifierConstructorDescriptionLightningStrikeEvent
(@NotNull World world, @NotNull LightningStrike bolt) Deprecated.LightningStrikeEvent
(@NotNull World world, @NotNull LightningStrike bolt, @NotNull LightningStrikeEvent.Cause cause) ThunderChangeEvent
(@NotNull World world, boolean to) Deprecated.ThunderChangeEvent
(@NotNull World world, boolean to, @NotNull ThunderChangeEvent.Cause cause) WeatherChangeEvent
(@NotNull World world, boolean to) Deprecated.WeatherChangeEvent
(@NotNull World world, boolean to, @NotNull WeatherChangeEvent.Cause cause) WeatherEvent
(@NotNull World where) -
Uses of World in org.bukkit.event.world
Modifier and TypeMethodDescriptionWorldEvent.getWorld()
Gets the world primarily involved with this eventModifierConstructorDescriptionAsyncStructureGenerateEvent
(@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.SpawnChangeEvent
(@NotNull World world, @NotNull Location previousLocation) TimeSkipEvent
(@NotNull World world, @NotNull TimeSkipEvent.SkipReason skipReason, long skipAmount) WorldEvent
(@NotNull World world) 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
Modifier and TypeMethodDescriptionLimitedRegion.getWorld()
Gets theWorld
object this region represents.Modifier 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 providedChunkGenerator.createVanillaChunkData
(@NotNull World world, int x, int z) Create a ChunkData for use in a generator, that is populated by the vanilla generator for that worldChunkGenerator.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
ChunkGenerator.getDefaultPopulators
(@NotNull World world) Gets a list of defaultBlockPopulator
s to apply to a given worldChunkGenerator.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
Modifier and TypeMethodDescriptionItemFactory.enchantItem
(@NotNull World world, @NotNull ItemStack item, int level, boolean allowTreasures) boolean
ItemType.isEnabledByFeature
(@NotNull World world) Gets if the ItemType is enabled by the features in a world. -
Uses of World in org.bukkit.map
Modifier and TypeMethodDescriptionMapView.getWorld()
Get the world that this map is associated with. -
Uses of World in org.bukkit.packs
Modifier and TypeMethodDescriptionDataPackManager.getDisabledDataPacks
(@NotNull World world) Deprecated, for removal: This API element is subject to removal in a future version.Return all the disabledDataPack
in the World.DataPackManager.getEnabledDataPacks
(@NotNull World world) Deprecated, for removal: This API element is subject to removal in a future version.Return all the enabledDataPack
in the World.boolean
DataPackManager.isEnabledByFeature
(@NotNull Material material, @NotNull World world) Deprecated, for removal: This API element is subject to removal in a future version.Gets if the Material is enabled for use by the features in World.boolean
DataPackManager.isEnabledByFeature
(@NotNull BlockType blockType, @NotNull World world) Deprecated, for removal: This API element is subject to removal in a future version.Gets if the BlockType is enabled for use by the features in World.boolean
DataPackManager.isEnabledByFeature
(@NotNull EntityType entityType, @NotNull World world) Deprecated, for removal: This API element is subject to removal in a future version.Gets if the EntityType is enabled for use by the Features in World.boolean
DataPackManager.isEnabledByFeature
(@NotNull ItemType itemType, @NotNull World world) Deprecated, for removal: This API element is subject to removal in a future version.Gets if the ItemType is enabled for use by the features in World. -
Uses of World in org.bukkit.util
Modifier and TypeMethodDescriptionVector.toLocation
(@NotNull World world) Gets a Location version of this vector with yaw and pitch being 0.Vector.toLocation
(@NotNull World world, float yaw, float pitch) Gets a Location version of this vector. -
Uses of World in org.bukkit.util.noise
ModifierConstructorDescriptionPerlinNoiseGenerator
(@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)