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 WorldBukkitBrigadierCommandSource.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 TypeMethodDescriptionvoidEntityPortalReadyEvent.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) protectedWorldBorderEvent(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 LocationPosition.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 TypeMethodDescriptionvoidRegionScheduler.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 ScheduledTaskRegionScheduler.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 ScheduledTaskRegionScheduler.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 ScheduledTaskRegionScheduler.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 WorldBukkit.createWorld(@NotNull WorldCreator creator) Creates or loads a world with the given name using the specified options.@Nullable WorldServer.createWorld(@NotNull WorldCreator creator) Creates or loads a world with the given name using the specified options.@Nullable WorldWorldCreator.createWorld()Creates a world with the specified options.@NotNull WorldServer.getRespawnWorld()Gets the world that players respawn in.static @Nullable WorldGets the world with the given name.static @Nullable WorldGets the world from the given Unique ID.static @Nullable WorldBukkit.getWorld(net.kyori.adventure.key.Key worldKey) Gets the world from the given Keystatic @Nullable WorldBukkit.getWorld(@NotNull NamespacedKey worldKey) Gets the world from the given NamespacedKey@NotNull WorldChunk.getWorld()Gets the world containing this chunkLocation.getWorld()Gets the world that this location resides in@Nullable WorldGets the world with the given name.@Nullable WorldGets the world from the given Unique ID.@Nullable WorldServer.getWorld(net.kyori.adventure.key.Key worldKey) Gets the world from the given Keydefault @Nullable WorldServer.getWorld(@NotNull NamespacedKey worldKey) Gets the world from the given NamespacedKey@Nullable WorldWorldBorder.getWorld()Get theWorldin 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 WorldCreatorCopies the options from the specified worldstatic @NotNull ItemStackGet the crafted item using the list ofItemStackprovided.static @NotNull ItemStackBukkit.craftItem(@NotNull ItemStack @NotNull [] craftingMatrix, @NotNull World world, @NotNull Player player) Get the crafted item using the list ofItemStackprovided.default @NotNull ItemStackGet the crafted item using the list ofItemStackprovided.default @NotNull ItemStackServer.craftItem(@NotNull ItemStack @NotNull [] craftingMatrix, @NotNull World world, @NotNull Player player) Get the crafted item using the list ofItemStackprovided.static @NotNull ItemCraftResultBukkit.craftItemResult(@NotNull ItemStack @NotNull [] craftingMatrix, @NotNull World world) Get the crafted item using the list ofItemStackprovided.static @NotNull ItemCraftResultBukkit.craftItemResult(@NotNull ItemStack @NotNull [] craftingMatrix, @NotNull World world, @NotNull Player player) Get the crafted item using the list ofItemStackprovided.@NotNull ItemCraftResultServer.craftItemResult(@NotNull ItemStack @NotNull [] craftingMatrix, @NotNull World world) Get the crafted item using the list ofItemStackprovided.@NotNull ItemCraftResultServer.craftItemResult(@NotNull ItemStack @NotNull [] craftingMatrix, @NotNull World world, @NotNull Player player) Get the crafted item using the list ofItemStackprovided.static ChunkGenerator.ChunkDataBukkit.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 ItemStackBukkit.createExplorerMap(@NotNull World world, @NotNull Location location, @NotNull StructureType structureType) Deprecated.static @NotNull ItemStackBukkit.createExplorerMap(@NotNull World world, @NotNull Location location, @NotNull StructureType structureType, int radius, boolean findUnexplored) static @Nullable ItemStackBukkit.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 ItemStackBukkit.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 ItemStackServer.createExplorerMap(@NotNull World world, @NotNull Location location, @NotNull StructureType structureType) @NotNull ItemStackServer.createExplorerMap(@NotNull World world, @NotNull Location location, @NotNull StructureType structureType, int radius, boolean findUnexplored) default @Nullable ItemStackServer.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 ItemStackServer.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 MapViewCreate a new map with an automatically assigned ID.@NotNull MapViewCreate a new map with an automatically assigned ID.default @NotNull EntityUnsafeValues.deserializeEntity(byte @NotNull [] data, @NotNull World world) Deprecated.Deserializes the entity from data.default @NotNull EntityUnsafeValues.deserializeEntity(byte @NotNull [] data, @NotNull World world, boolean preserveUUID) Deprecated.Deserializes the entity from data.@NotNull EntityUnsafeValues.deserializeEntity(byte @NotNull [] data, @NotNull World world, boolean preserveUUID, boolean preservePassengers) Deprecated.Deserializes the entity from data.static @Nullable RecipeBukkit.getCraftingRecipe(@NotNull ItemStack @NotNull [] craftingMatrix, @NotNull World world) Get theRecipefor the list of ItemStacks provided.@Nullable RecipeServer.getCraftingRecipe(@NotNull ItemStack @NotNull [] craftingMatrix, @NotNull World world) Get theRecipefor the list of ItemStacks provided.static booleanBukkit.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 booleanBukkit.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 booleanBukkit.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 booleanBukkit.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 booleanBukkit.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.booleanServer.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.booleanServer.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.booleanServer.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.booleanServer.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.booleanServer.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.voidServer.setRespawnWorld(@NotNull World world) Sets the world that players respawn in.voidSets the world that this location resides in@NotNull LocationLocation.toLocation(@NotNull World world) static booleanBukkit.unloadWorld(@NotNull World world, boolean save) Unloads the given world.booleanServer.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 WorldBlock.getWorld()Gets the world which contains this Block@NotNull WorldBlockState.getWorld()Gets the world which contains the block represented by this block state.@Nullable WorldDoubleChest.getWorld()Methods in org.bukkit.block with parameters of type WorldModifier and TypeMethodDescriptionbooleanBlockType.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 WorldEntity.getWorld()Gets the current world this entity resides inMethods in org.bukkit.entity with parameters of type WorldModifier and TypeMethodDescription@NotNull EntityEntitySnapshot.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 WorldPlayerChangedWorldEvent.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 WorldModifierConstructorDescriptionprotectedRaidFinishEvent(@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 WorldWeatherEvent.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) protectedWeatherEvent(@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 WorldWorldEvent.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) protectedWorldEvent(@NotNull World world) protectedWorldEvent(@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 WorldLimitedRegion.getWorld()Gets theWorldobject this region represents.Methods in org.bukkit.generator with parameters of type WorldModifier and TypeMethodDescriptionbooleanTests if the specified location is valid for a natural spawn positionprotected final @NotNull ChunkGenerator.ChunkDataChunkGenerator.createChunkData(@NotNull World world) Deprecated.ChunkGenerator.ChunkDataare now directly provided@NotNull ChunkGenerator.ChunkDataChunkGenerator.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 defaultBlockPopulators to apply to a given world@Nullable LocationChunkGenerator.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 ItemStackItemFactory.enchantItem(@NotNull World world, @NotNull ItemStack item, int level, boolean allowTreasures) booleanItemType.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 WorldMapView.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 LocationVector.toLocation(@NotNull World world) Gets a Location version of this vector with yaw and pitch being 0.@NotNull LocationVector.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)