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 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
Modifier and TypeMethodDescriptionSets the location of where to spawn the particle -
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) 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 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.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) Create a new explorer map targeting the closest nearby structure of a givenStructureType
.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 givenStructureType
.Server.createExplorerMap
(@NotNull World world, @NotNull Location location, @NotNull StructureType structureType) Create a new explorer map targeting the closest nearby structure of a givenStructureType
.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 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.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
-
Uses of World in org.bukkit.entity
-
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 eventModifierConstructorDescriptionLootGenerateEvent
(@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, @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, 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.map
Modifier and TypeMethodDescriptionMapView.getWorld()
Get the world that this map is associated with. -
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