Uses of Interface
org.bukkit.World
Packages that use 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 org.bukkit
Methods in org.bukkit that return WorldModifier and TypeMethodDescriptionstatic World
Bukkit.createWorld
(WorldCreator creator) Creates or loads a world with the given name using the specified options.Server.createWorld
(WorldCreator creator) Creates or loads a world with the given name using the specified options.WorldCreator.createWorld()
Creates a world with the specified options.static World
Gets the world with the given name.static World
Gets the world from the given Unique ID.Chunk.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.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 TypeMethodDescriptionCopies the options from the specified worldstatic ItemStack
Get the crafted item using the list ofItemStack
provided.static ItemStack
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 ItemCraftResult
Bukkit.craftItemResult
(ItemStack[] craftingMatrix, World world) Get the crafted item using the list ofItemStack
provided.static ItemCraftResult
Bukkit.craftItemResult
(ItemStack[] craftingMatrix, World world, Player player) Get the crafted item using the list ofItemStack
provided.Server.craftItemResult
(ItemStack[] craftingMatrix, World world) Get the crafted item using the list ofItemStack
provided.Server.craftItemResult
(ItemStack[] craftingMatrix, World world, Player player) Get the crafted item using the list ofItemStack
provided.static ChunkGenerator.ChunkData
Bukkit.createChunkData
(World world) Create a ChunkData for use in a generator.Server.createChunkData
(World world) Create a ChunkData for use in a generator.static ItemStack
Bukkit.createExplorerMap
(World world, Location location, StructureType structureType) Create a new explorer map targeting the closest nearby structure of a givenStructureType
.static ItemStack
Bukkit.createExplorerMap
(World world, Location location, StructureType structureType, int radius, boolean findUnexplored) Create a new explorer map targeting the closest nearby structure of a givenStructureType
.Server.createExplorerMap
(World world, Location location, StructureType structureType) Create a new explorer map targeting the closest nearby structure of a givenStructureType
.Server.createExplorerMap
(World world, Location location, StructureType structureType, int radius, boolean findUnexplored) Create a new explorer map targeting the closest nearby structure of a givenStructureType
.static MapView
Create a new map with an automatically assigned ID.Create a new map with an automatically assigned ID.static Recipe
Bukkit.getCraftingRecipe
(ItemStack[] craftingMatrix, World world) Get theRecipe
for the list of ItemStacks provided.Server.getCraftingRecipe
(ItemStack[] craftingMatrix, World world) Get theRecipe
for the list of ItemStacks provided.boolean
Material.isEnabledByFeature
(World world) Gets if the Material is enabled by the features in a world.void
Sets the world that this location resides instatic boolean
Bukkit.unloadWorld
(World world, boolean save) Unloads the given world.boolean
Server.unloadWorld
(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 TypeMethodDescriptionBlock.getWorld()
Gets the world which contains this BlockBlockState.getWorld()
Gets the world which contains the block represented by this block state.DoubleChest.getWorld()
Methods in org.bukkit.block with parameters of type WorldModifier and TypeMethodDescriptionboolean
BlockType.isEnabledByFeature
(World world) Gets if the BlockType is enabled by the features in a world. -
Uses of World in org.bukkit.entity
Methods in org.bukkit.entity that return WorldModifier and TypeMethodDescriptionEntity.getWorld()
Gets the current world this entity resides inMethods in org.bukkit.entity with parameters of type WorldModifier and TypeMethodDescriptionEntitySnapshot.createEntity
(World world) Creates an entity using this template.boolean
EntityType.isEnabledByFeature
(World world) Gets if this EntityType is enabled by feature in a world. -
Uses of World in org.bukkit.event.player
Methods in org.bukkit.event.player that return WorldModifier and TypeMethodDescriptionPlayerChangedWorldEvent.getFrom()
Gets the world the player is switching from.Constructors in org.bukkit.event.player with parameters of type World -
Uses of World in org.bukkit.event.raid
Constructors in org.bukkit.event.raid with parameters of type WorldModifierConstructorDescriptionprotected
RaidFinishEvent
(Raid raid, World world, List<Player> winners) RaidStopEvent
(Raid raid, World world, RaidStopEvent.Reason reason) RaidTriggerEvent
(Raid raid, World world, 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 World
WeatherEvent.getWorld()
Returns the World where this event is occurringConstructors in org.bukkit.event.weather with parameters of type WorldModifierConstructorDescriptionLightningStrikeEvent
(World world, LightningStrike bolt) Deprecated.LightningStrikeEvent
(World world, LightningStrike bolt, LightningStrikeEvent.Cause cause) ThunderChangeEvent
(World world, boolean to) WeatherChangeEvent
(World world, boolean to) WeatherEvent
(World where) -
Uses of World in org.bukkit.event.world
Methods in org.bukkit.event.world that return WorldModifier and TypeMethodDescriptionWorldEvent.getWorld()
Gets the world primarily involved with this eventConstructors in org.bukkit.event.world with parameters of type WorldModifierConstructorDescriptionAsyncStructureGenerateEvent
(World world, boolean async, AsyncStructureGenerateEvent.Cause cause, Structure structure, BoundingBox boundingBox, int chunkX, int chunkZ) AsyncStructureSpawnEvent
(World world, Structure structure, BoundingBox boundingBox, int chunkX, int chunkZ) LootGenerateEvent
(World world, Entity entity, InventoryHolder inventoryHolder, LootTable lootTable, LootContext lootContext, List<ItemStack> items, boolean plugin) PortalCreateEvent
(List<BlockState> blocks, World world, Entity entity, PortalCreateEvent.CreateReason reason) PortalCreateEvent
(List<BlockState> blocks, World world, PortalCreateEvent.CreateReason reason) Deprecated.SpawnChangeEvent
(World world, Location previousLocation) TimeSkipEvent
(World world, TimeSkipEvent.SkipReason skipReason, long skipAmount) WorldEvent
(World world) WorldEvent
(World world, boolean isAsync) WorldInitEvent
(World world) WorldLoadEvent
(World world) WorldSaveEvent
(World world) WorldUnloadEvent
(World world) -
Uses of World in org.bukkit.generator
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 ChunkGenerator.ChunkData
ChunkGenerator.createChunkData
(World world) Deprecated.ChunkGenerator.generateChunkData
(World world, Random random, int x, int z, ChunkGenerator.BiomeGrid biome) Deprecated.The generation is now split up and the new methods should be used, seeChunkGenerator
ChunkGenerator.getDefaultPopulators
(World world) Gets a list of defaultBlockPopulator
s to apply to a given worldChunkGenerator.getFixedSpawnLocation
(World world, 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 TypeMethodDescriptionItemFactory.enchantItem
(World world, ItemStack item, int level, boolean allowTreasures) Enchants the given item at the provided level.boolean
ItemType.isEnabledByFeature
(World world) Gets if the ItemType is enabled by the features in a world. -
Uses of World in org.bukkit.map
Methods in org.bukkit.map that return WorldModifier and TypeMethodDescriptionMapView.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.packs
Methods in org.bukkit.packs with parameters of type WorldModifier and TypeMethodDescriptionDataPackManager.getDisabledDataPacks
(World world) Return all the disabledDataPack
in the World.DataPackManager.getEnabledDataPacks
(World world) Return all the enabledDataPack
in the World.boolean
DataPackManager.isEnabledByFeature
(BlockType blockType, World world) Gets if the BlockType is enabled for use by the features in World.boolean
DataPackManager.isEnabledByFeature
(EntityType entityType, World world) Gets if the EntityType is enabled for use by the Features in World.boolean
DataPackManager.isEnabledByFeature
(ItemType itemType, World world) Gets if the ItemType is enabled for use by the features in World.boolean
DataPackManager.isEnabledByFeature
(Material material, World world) Gets if the Material is enabled for use by the features in World. -
Uses of World in org.bukkit.util
Methods in org.bukkit.util with parameters of type WorldModifier and TypeMethodDescriptionVector.toLocation
(World world) Gets a Location version of this vector with yaw and pitch being 0.Vector.toLocation
(World world, float yaw, float pitch) Gets a Location version of this vector.Constructors in org.bukkit.util with parameters of type WorldModifierConstructorDescriptionBlockIterator
(World world, Vector start, 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
(World world) Creates a seeded perlin noise generator for the given worldPerlinOctaveGenerator
(World world, int octaves) Creates a perlin octave generator for the given worldSimplexNoiseGenerator
(World world) Creates a seeded simplex noise generator for the given worldSimplexOctaveGenerator
(World world, int octaves) Creates a simplex octave generator for the given world
ChunkGenerator.ChunkData
are now directly provided