Uses of Class
org.bukkit.Location
Packages that use Location
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.Generalized BlockData classes.
Classes concerning the creation of boss bars that appear at the top of the
player's screen.
Classes relating to handling specialized non-chat player input.
Classes dedicated to handling a plugin's runtime configuration.
Interfaces for non-voxel objects that can exist in a
world, including all players, monsters, projectiles, etc.Classes concerning an entity's persistent memory.
Events relating to vehicular entities.Classes to facilitate
world generation
implementation.Classes involved in manipulating player inventories and item interactions.
The interfaces used when manipulating extra data can can be stored inside
item stacks.Classes relevant to loot table manipulation and generation.
Classes related to creating or using
structures without creating Structure
blocks in the world.Multi and single purpose classes to facilitate various programmatic
concepts.
Spigot-specific player events.
-
Uses of Location in org.bukkit
Methods in org.bukkit that return LocationModifier and TypeMethodDescriptionLocation.add(double x, double y, double z) Adds the location by another.Adds the location by another.Adds the location by a vector.Location.clone()static LocationLocation.deserialize(Map<String, Object> args) Required method for deserializationOfflinePlayer.getBedSpawnLocation()Gets the Location where the player will spawn at their bed, null if they have not slept in one or their current bed spawn is invalid.WorldBorder.getCenter()Gets the current border center.OfflinePlayer.getLastDeathLocation()Gets the player's last death location.Raid.getLocation()Gets the center location where the raid occurs.Vibration.Destination.BlockDestination.getLocation()Vibration.getOrigin()Get the origin of the vibration.World.getSpawnLocation()Gets the default spawnLocationof this worldWorld.locateNearestStructure(Location origin, StructureType structureType, int radius, boolean findUnexplored) Deprecated.Location.multiply(double m) Performs scalar multiplication, multiplying all components with a scalar.Location.setDirection(Vector vector) Location.subtract(double x, double y, double z) Subtracts the location by another.Subtracts the location by another.Subtracts the location by a vector.Location.zero()Zero this location's components.Methods in org.bukkit with parameters of type LocationModifier and TypeMethodDescriptionAdds the location by another.static ItemStackBukkit.createExplorerMap(World world, Location location, StructureType structureType) Create a new explorer map targeting the closest nearby structure of a givenStructureType.static ItemStackBukkit.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.booleanWorld.createExplosion(Location loc, float power) Creates explosion at given coordinates with given powerbooleanWorld.createExplosion(Location loc, float power, boolean setFire) Creates explosion at given coordinates with given power and optionally setting blocks on fire.booleanWorld.createExplosion(Location loc, float power, boolean setFire, boolean breakBlocks) Creates explosion at given coordinates with given power and optionally setting blocks on fire or breaking blocks.booleanWorld.createExplosion(Location loc, float power, boolean setFire, boolean breakBlocks, Entity source) Creates explosion at given coordinates with given power and optionally setting blocks on fire or breaking blocks.doubleGet the distance between this location and another.doubleLocation.distanceSquared(Location o) Get the squared distance between this location and another.Drops an item at the specifiedLocationDrops an item at the specifiedLocationNote that functions will run before the entity is spawnedWorld.dropItemNaturally(Location location, ItemStack item) Drops an item at the specifiedLocationwith a random offsetWorld.dropItemNaturally(Location location, ItemStack item, Consumer<Item> function) Drops an item at the specifiedLocationwith a random offset Note that functions will run before the entity is spawnedbooleanRegionAccessor.generateTree(Location location, Random random, TreeType type) Creates a tree at the givenLocationbooleanRegionAccessor.generateTree(Location location, Random random, TreeType type, Predicate<BlockState> statePredicate) Creates a tree at the givenLocationbooleanRegionAccessor.generateTree(Location location, Random random, TreeType type, Consumer<BlockState> stateConsumer) Creates a tree at the givenLocationbooleanWorld.generateTree(Location location, TreeType type) Creates a tree at the givenLocationbooleanWorld.generateTree(Location loc, TreeType type, BlockChangeDelegate delegate) Deprecated.this method does not handle tile entities (bee nests)World.getBlockAt(Location location) RegionAccessor.getBlockData(Location location) RegionAccessor.getBlockState(Location location) Gets theBlockStateat the givenLocation.World.getChunkAt(Location location) World.getHighestBlockAt(Location location) Gets the highest non-empty (impassable) block at the given coordinates.World.getHighestBlockAt(Location location, HeightMap heightMap) Gets the highest block corresponding to theHeightMapat the given coordinates.intRegionAccessor.getHighestBlockYAt(Location location) Gets the highest non-empty (impassable) coordinate at the givenLocation.intRegionAccessor.getHighestBlockYAt(Location location, HeightMap heightMap) World.getNearbyEntities(Location location, double x, double y, double z) Returns a list of entities within a bounding box centered around a Location.World.getNearbyEntities(Location location, double x, double y, double z, Predicate<Entity> filter) Returns a list of entities within a bounding box centered around a Location.Gets the type of the block at the givenLocation.booleanCheck if the specified location is inside this border.World.locateNearestRaid(Location location, int radius) Finds the nearest raid close to the given location.World.locateNearestStructure(Location origin, Structure structure, int radius, boolean findUnexplored) Find the closest nearby structure of a givenStructure.World.locateNearestStructure(Location origin, StructureType structureType, int radius, boolean findUnexplored) Find the closest nearby structure of a givenStructureType.World.locateNearestStructure(Location origin, StructureType structureType, int radius, boolean findUnexplored) voidWorld.playEffect(Location location, Effect effect, int data) Plays an effect to all players within a default radius around a given location.voidWorld.playEffect(Location location, Effect effect, int data, int radius) Plays an effect to all players within a given radius around a location.<T> voidWorld.playEffect(Location location, Effect effect, T data) Plays an effect to all players within a default radius around a given location.<T> voidWorld.playEffect(Location location, Effect effect, T data, int radius) Plays an effect to all players within a given radius around a location.voidPlay a Sound at the provided Location in the World.voidWorld.playSound(Location location, String sound, SoundCategory category, float volume, float pitch) Play a Sound at the provided Location in the World.voidPlay a Sound at the provided Location in the World.voidWorld.playSound(Location location, Sound sound, SoundCategory category, float volume, float pitch) Play a Sound at the provided Location in the World.World.rayTrace(Location start, Vector direction, double maxDistance, FluidCollisionMode fluidCollisionMode, boolean ignorePassableBlocks, double raySize, Predicate<Entity> filter) Performs a ray trace that checks for both block and entity collisions.World.rayTraceBlocks(Location start, Vector direction, double maxDistance) Performs a ray trace that checks for block collisions using the blocks' precise collision shapes.World.rayTraceBlocks(Location start, Vector direction, double maxDistance, FluidCollisionMode fluidCollisionMode) Performs a ray trace that checks for block collisions using the blocks' precise collision shapes.World.rayTraceBlocks(Location start, Vector direction, double maxDistance, FluidCollisionMode fluidCollisionMode, boolean ignorePassableBlocks) Performs a ray trace that checks for block collisions using the blocks' precise collision shapes.World.rayTraceEntities(Location start, Vector direction, double maxDistance) Performs a ray trace that checks for entity collisions.World.rayTraceEntities(Location start, Vector direction, double maxDistance, double raySize) Performs a ray trace that checks for entity collisions.World.rayTraceEntities(Location start, Vector direction, double maxDistance, double raySize, Predicate<Entity> filter) Performs a ray trace that checks for entity collisions.World.rayTraceEntities(Location start, Vector direction, double maxDistance, Predicate<Entity> filter) Performs a ray trace that checks for entity collisions.voidvoidRegionAccessor.setBlockData(Location location, BlockData blockData) voidSets the new border center.booleanWorld.setSpawnLocation(Location location) Sets the spawn location of the world.void<T extends Entity>
TSpawn an entity of a specific class at the givenLocation<T extends Entity>
TRegionAccessor.spawn(Location location, Class<T> clazz, boolean randomizeData, Consumer<T> function) Creates a new entity at the givenLocationwith the supplied function run before the entity is added to the world.<T extends Entity>
TSpawn an entity of a specific class at the givenLocation, with the supplied function run before the entity is added to the world.World.spawnArrow(Location location, Vector direction, float speed, float spread) <T extends AbstractArrow>
TWorld.spawnArrow(Location location, Vector direction, float speed, float spread, Class<T> clazz) Creates an arrow entity of the given class at the givenLocationRegionAccessor.spawnEntity(Location location, EntityType type) Creates a entity at the givenLocationRegionAccessor.spawnEntity(Location loc, EntityType type, boolean randomizeData) Creates a new entity at the givenLocation.World.spawnFallingBlock(Location location, BlockData data) World.spawnFallingBlock(Location location, MaterialData data) World.spawnFallingBlock(Location location, Material material, byte data) Deprecated.Magic valuevoidWorld.spawnParticle(Particle particle, Location location, int count) Spawns the particle (the number of times specified by count) at the target location.voidWorld.spawnParticle(Particle particle, Location location, int count, double offsetX, double offsetY, double offsetZ) Spawns the particle (the number of times specified by count) at the target location.voidWorld.spawnParticle(Particle particle, Location location, int count, double offsetX, double offsetY, double offsetZ, double extra) Spawns the particle (the number of times specified by count) at the target location.<T> voidWorld.spawnParticle(Particle particle, Location location, int count, double offsetX, double offsetY, double offsetZ, double extra, T data) Spawns the particle (the number of times specified by count) at the target location.<T> voidWorld.spawnParticle(Particle particle, Location location, int count, double offsetX, double offsetY, double offsetZ, double extra, T data, boolean force) Spawns the particle (the number of times specified by count) at the target location.<T> voidWorld.spawnParticle(Particle particle, Location location, int count, double offsetX, double offsetY, double offsetZ, T data) Spawns the particle (the number of times specified by count) at the target location.<T> voidWorld.spawnParticle(Particle particle, Location location, int count, T data) Spawns the particle (the number of times specified by count) at the target location.World.Spigot.strikeLightning(Location loc, boolean isSilent) Strikes lightning at the givenLocationand possibly without soundWorld.strikeLightning(Location loc) Strikes lightning at the givenLocationWorld.Spigot.strikeLightningEffect(Location loc, boolean isSilent) Strikes lightning at the givenLocationwithout doing damage and possibly without soundWorld.strikeLightningEffect(Location loc) Strikes lightning at the givenLocationwithout doing damageSubtracts the location by another.Constructors in org.bukkit with parameters of type LocationModifierConstructorDescriptionBlockDestination(Location block) Vibration(Location origin, Vibration.Destination destination, int arrivalTime) -
Uses of Location in org.bukkit.block
Methods in org.bukkit.block that return LocationModifier and TypeMethodDescriptionEndGateway.getExitLocation()Gets the location that entities are teleported to when entering the gateway portal.Beehive.getFlower()Get the hive's flower location.Block.getLocation()Gets the Location of the blockBlock.getLocation(Location loc) Stores the location of the block in the provided Location object.BlockState.getLocation()Gets the location of this block state.BlockState.getLocation(Location loc) Stores the location of this block state in the provided Location object.DoubleChest.getLocation()Methods in org.bukkit.block with parameters of type LocationModifier and TypeMethodDescriptionBlock.getLocation(Location loc) Stores the location of the block in the provided Location object.BlockState.getLocation(Location loc) Stores the location of this block state in the provided Location object.Block.rayTrace(Location start, Vector direction, double maxDistance, FluidCollisionMode fluidCollisionMode) Performs a ray trace that checks for collision with this specific block in its current state using its precise collision shape.voidEndGateway.setExitLocation(Location location) Sets the exit location that entities are teleported to when they enter the gateway portal.voidSet the hive's flower location. -
Uses of Location in org.bukkit.block.data
Methods in org.bukkit.block.data with parameters of type LocationModifier and TypeMethodDescriptionbooleanBlockData.isSupported(Location location) Checks if this state would be properly supported if it were placed at the block at the givenLocation. -
Uses of Location in org.bukkit.boss
Methods in org.bukkit.boss that return LocationModifier and TypeMethodDescriptionDragonBattle.getEndPortalLocation()Get the location of the end portal. -
Uses of Location in org.bukkit.command
Methods in org.bukkit.command with parameters of type LocationModifier and TypeMethodDescriptionCommand.tabComplete(CommandSender sender, String alias, String[] args, Location location) Executed on tab completion for this command, returning a list of options the player can tab through.CommandMap.tabComplete(CommandSender sender, String cmdLine, Location location) Looks for the requested command and executes an appropriate tab-completer if found.SimpleCommandMap.tabComplete(CommandSender sender, String cmdLine, Location location) -
Uses of Location in org.bukkit.configuration
Methods in org.bukkit.configuration that return LocationModifier and TypeMethodDescriptionConfigurationSection.getLocation(String path) Gets the requested Location by path.ConfigurationSection.getLocation(String path, Location def) Gets the requestedLocationby path, returning a default value if not found.MemorySection.getLocation(String path) MemorySection.getLocation(String path, Location def) Methods in org.bukkit.configuration with parameters of type LocationModifier and TypeMethodDescriptionConfigurationSection.getLocation(String path, Location def) Gets the requestedLocationby path, returning a default value if not found.MemorySection.getLocation(String path, Location def) -
Uses of Location in org.bukkit.entity
Methods in org.bukkit.entity that return LocationModifier and TypeMethodDescriptionSniffer.findPossibleDigLocation()Try to get a possible location where the sniffer can dig.EnderCrystal.getBeamTarget()Gets the location that this end crystal is pointing its beam to.HumanEntity.getBedLocation()Gets the location of the bed the player is currently sleeping inPlayer.getBedSpawnLocation()Gets the Location where the player will spawn at their bed, null if they have not slept in one or their current bed spawn is invalid.Vex.getBound()Gets the bound of this entity.Player.getCompassTarget()Get the previously set compass target.LivingEntity.getEyeLocation()Get a Location detailing the current eye position of the living entity.Bee.getFlower()Get the bee's flower location.Bee.getHive()Get the bee's hive location.Allay.getJukebox()Gets the jukebox the allay is set to dance to.HumanEntity.getLastDeathLocation()Gets the player's last death location.Entity.getLocation()Gets the entity's current positionEntity.getLocation(Location loc) Stores the entity's current position in the provided Location object.EnderSignal.getTargetLocation()Get the location this EnderSignal is moving towards.Methods in org.bukkit.entity that return types with arguments of type LocationModifier and TypeMethodDescriptionSniffer.getExploredLocations()Gets the locations explored by the sniffer.Methods in org.bukkit.entity with parameters of type LocationModifier and TypeMethodDescriptionvoidSniffer.addExploredLocation(Location location) Add a location to the explored locations.Entity.getLocation(Location loc) Stores the entity's current position in the provided Location object.HumanEntity.openEnchanting(Location location, boolean force) Opens an empty enchanting inventory window with the player's inventory on the bottom.HumanEntity.openWorkbench(Location location, boolean force) Opens an empty workbench inventory window with the player's inventory on the bottom.voidPlayer.playEffect(Location loc, Effect effect, int data) Deprecated.Magic value<T> voidPlayer.playEffect(Location loc, Effect effect, T data) Plays an effect to just this player.voidDeprecated.Magic valuevoidPlayer.playNote(Location loc, Instrument instrument, Note note) Play a note for a player at a location.voidPlay a sound for a player at the location.voidPlayer.playSound(Location location, String sound, SoundCategory category, float volume, float pitch) Play a sound for a player at the location.voidPlay a sound for a player at the location.voidPlayer.playSound(Location location, Sound sound, SoundCategory category, float volume, float pitch) Play a sound for a player at the location.voidSniffer.removeExploredLocation(Location location) Remove a location of the explored locations.voidPlayer.sendBlockChange(Location loc, BlockData block) Send a block change.voidPlayer.sendBlockChange(Location loc, Material material, byte data) Deprecated.Magic valuevoidPlayer.sendBlockDamage(Location loc, float progress) Send block damage.voidPlayer.sendBlockDamage(Location loc, float progress, int sourceId) Send block damage.voidPlayer.sendBlockDamage(Location loc, float progress, Entity source) Send block damage.voidPlayer.sendSignChange(Location loc, String[] lines) Send a sign change.voidPlayer.sendSignChange(Location loc, String[] lines, DyeColor dyeColor) Send a sign change.voidPlayer.sendSignChange(Location loc, String[] lines, DyeColor dyeColor, boolean hasGlowingText) Send a sign change.voidEnderCrystal.setBeamTarget(Location location) Sets the location that this end crystal is pointing to.voidPlayer.setBedSpawnLocation(Location location) Sets the Location where the player will spawn at their bed.voidPlayer.setBedSpawnLocation(Location location, boolean force) Sets the Location where the player will spawn at their bed.voidSets the bound of this entity.voidPlayer.setCompassTarget(Location loc) Set the target of the player's compass.voidWarden.setDisturbanceLocation(Location location) Make the warden sense a disturbance in the force at the location given.voidSet the bee's flower location.voidSet the bee's hive location.voidHumanEntity.setLastDeathLocation(Location location) Sets the player's last death location.voidEnderSignal.setTargetLocation(Location location) Set theLocationthis EnderSignal is moving towards.booleanAttempts to make the entity sleep at the given location.booleanAttempts to make this villager sleep at the given location.voidPlayer.spawnParticle(Particle particle, Location location, int count) Spawns the particle (the number of times specified by count) at the target location.voidPlayer.spawnParticle(Particle particle, Location location, int count, double offsetX, double offsetY, double offsetZ) Spawns the particle (the number of times specified by count) at the target location.voidPlayer.spawnParticle(Particle particle, Location location, int count, double offsetX, double offsetY, double offsetZ, double extra) Spawns the particle (the number of times specified by count) at the target location.<T> voidPlayer.spawnParticle(Particle particle, Location location, int count, double offsetX, double offsetY, double offsetZ, double extra, T data) Spawns the particle (the number of times specified by count) at the target location.<T> voidPlayer.spawnParticle(Particle particle, Location location, int count, double offsetX, double offsetY, double offsetZ, T data) Spawns the particle (the number of times specified by count) at the target location.<T> voidPlayer.spawnParticle(Particle particle, Location location, int count, T data) Spawns the particle (the number of times specified by count) at the target location.voidAllay.startDancing(Location location) Causes the allay to start dancing because of the provided jukebox location.booleanTeleports this entity to the given location.booleanEntity.teleport(Location location, PlayerTeleportEvent.TeleportCause cause) Teleports this entity to the given location. -
Uses of Location in org.bukkit.entity.memory
Fields in org.bukkit.entity.memory with type parameters of type LocationModifier and TypeFieldDescriptionMemoryKey.HOMEMemoryKey.JOB_SITEMemoryKey.LIKED_NOTEBLOCK_POSITIONMemoryKey.MEETING_POINTMemoryKey.POTENTIAL_JOB_SITEMemoryKey.SNIFFER_EXPLORED_POSITIONS -
Uses of Location in org.bukkit.event.block
Methods in org.bukkit.event.block that return Location -
Uses of Location in org.bukkit.event.entity
Methods in org.bukkit.event.entity that return LocationModifier and TypeMethodDescriptionEntityTeleportEvent.getFrom()Gets the location that this entity moved fromEntityExplodeEvent.getLocation()Returns the location where the explosion happened.EntityPortalEnterEvent.getLocation()Gets the portal block the entity is touchingEntitySpawnEvent.getLocation()Gets the location at which the entity is spawning.ItemDespawnEvent.getLocation()Gets the location at which the item is despawning.EntityTeleportEvent.getTo()Gets the location that this entity moved toMethods in org.bukkit.event.entity with parameters of type LocationModifier and TypeMethodDescriptionvoidSets the location that this entity moved fromvoidSets the location that this entity moved toConstructors in org.bukkit.event.entity with parameters of type LocationModifierConstructorDescriptionEntityExplodeEvent(Entity what, Location location, List<Block> blocks, float yield) EntityPortalEnterEvent(Entity entity, Location location) EntityPortalEvent(Entity entity, Location from, Location to) EntityPortalEvent(Entity entity, Location from, Location to, int searchRadius) EntityTeleportEvent(Entity what, Location from, Location to) ItemDespawnEvent(Item despawnee, Location loc) ItemSpawnEvent(Item spawnee, Location loc) Deprecated. -
Uses of Location in org.bukkit.event.player
Methods in org.bukkit.event.player that return LocationModifier and TypeMethodDescriptionPlayerMoveEvent.getFrom()Gets the location this player moved fromPlayerSpawnChangeEvent.getNewSpawn()Gets the new spawn to be set.PlayerRespawnEvent.getRespawnLocation()Gets the current respawn locationPlayerMoveEvent.getTo()Gets the location this player moved toMethods in org.bukkit.event.player with parameters of type LocationModifier and TypeMethodDescriptionvoidSets the location to mark as where the player moved fromvoidPlayerSpawnChangeEvent.setNewSpawn(Location newSpawn) Sets the new spawn location.voidPlayerRespawnEvent.setRespawnLocation(Location respawnLocation) Sets the new respawn locationvoidSets the location that this player will move toConstructors in org.bukkit.event.player with parameters of type LocationModifierConstructorDescriptionPlayerMoveEvent(Player player, Location from, Location to) PlayerPortalEvent(Player player, Location from, Location to) PlayerPortalEvent(Player player, Location from, Location to, PlayerTeleportEvent.TeleportCause cause) PlayerPortalEvent(Player player, Location from, Location to, PlayerTeleportEvent.TeleportCause cause, int getSearchRadius, boolean canCreatePortal, int creationRadius) PlayerRespawnEvent(Player respawnPlayer, Location respawnLocation, boolean isBedSpawn) Deprecated.PlayerRespawnEvent(Player respawnPlayer, Location respawnLocation, boolean isBedSpawn, boolean isAnchorSpawn) Deprecated.PlayerRespawnEvent(Player respawnPlayer, Location respawnLocation, boolean isBedSpawn, boolean isAnchorSpawn, PlayerRespawnEvent.RespawnReason respawnReason) PlayerSpawnChangeEvent(Player player, Location newSpawn, boolean forced, PlayerSpawnChangeEvent.Cause cause) PlayerTeleportEvent(Player player, Location from, Location to) PlayerTeleportEvent(Player player, Location from, Location to, PlayerTeleportEvent.TeleportCause cause) -
Uses of Location in org.bukkit.event.vehicle
Methods in org.bukkit.event.vehicle that return LocationModifier and TypeMethodDescriptionVehicleMoveEvent.getFrom()Get the previous position.VehicleMoveEvent.getTo()Get the next position.Constructors in org.bukkit.event.vehicle with parameters of type Location -
Uses of Location in org.bukkit.event.world
Methods in org.bukkit.event.world that return LocationModifier and TypeMethodDescriptionGenericGameEvent.getLocation()Get the location where the event occurred.StructureGrowEvent.getLocation()Gets the location of the structure.SpawnChangeEvent.getPreviousLocation()Gets the previous spawn locationConstructors in org.bukkit.event.world with parameters of type LocationModifierConstructorDescriptionGenericGameEvent(GameEvent event, Location location, Entity entity, int radius, boolean isAsync) SpawnChangeEvent(World world, Location previousLocation) StructureGrowEvent(Location location, TreeType species, boolean bonemeal, Player player, List<BlockState> blocks) -
Uses of Location in org.bukkit.generator
Methods in org.bukkit.generator that return LocationModifier and TypeMethodDescriptionChunkGenerator.getFixedSpawnLocation(World world, Random random) Gets a fixed spawn location to use for a given world.Methods in org.bukkit.generator with parameters of type LocationModifier and TypeMethodDescriptionbooleanLimitedRegion.isInRegion(Location location) Checks if the givenLocationis in the region. -
Uses of Location in org.bukkit.inventory
Methods in org.bukkit.inventory that return LocationModifier and TypeMethodDescriptionInventory.getLocation()Get the location of the block or entity which corresponds to this inventory. -
Uses of Location in org.bukkit.inventory.meta
Methods in org.bukkit.inventory.meta that return LocationModifier and TypeMethodDescriptionCompassMeta.getLodestone()Gets the location that this compass will point to.Methods in org.bukkit.inventory.meta with parameters of type LocationModifier and TypeMethodDescriptionvoidCompassMeta.setLodestone(Location lodestone) Sets the location this lodestone compass will point to. -
Uses of Location in org.bukkit.loot
Methods in org.bukkit.loot that return LocationModifier and TypeMethodDescriptionLootContext.getLocation()TheLocationto store where the loot will be generated.Constructors in org.bukkit.loot with parameters of type LocationModifierConstructorDescriptionCreates a new LootContext.Builder instance to facilitate easy creation ofLootContexts. -
Uses of Location in org.bukkit.structure
Methods in org.bukkit.structure with parameters of type LocationModifier and TypeMethodDescriptionvoidFills the structure from an area in a world.voidStructure.fill(Location origin, BlockVector size, boolean includeEntities) Fills the Structure from an area in a world, starting at the specified origin and extending in each axis according to the specified size vector.voidStructure.place(Location location, boolean includeEntities, StructureRotation structureRotation, Mirror mirror, int palette, float integrity, Random random) Place a structure in the world. -
Uses of Location in org.bukkit.util
Methods in org.bukkit.util that return LocationModifier and TypeMethodDescriptionStructureSearchResult.getLocation()Return the location of the structure.Vector.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.Methods in org.bukkit.util with parameters of type LocationModifier and TypeMethodDescriptionstatic BoundingBoxCreates a new bounding box using the given center and extents.static BoundingBoxCreates a new bounding box using the coordinates of the given locations as corners.Shifts this bounding box by the given amounts.Expands this bounding box to contain (or border) the specified position.Constructors in org.bukkit.util with parameters of type LocationModifierConstructorDescriptionBlockIterator(Location loc) Constructs the BlockIterator.BlockIterator(Location loc, double yOffset) Constructs the BlockIterator.BlockIterator(Location loc, double yOffset, int maxDistance) Constructs the BlockIterator. -
Uses of Location in org.spigotmc.event.player
Methods in org.spigotmc.event.player that return LocationModifier and TypeMethodDescriptionPlayerSpawnLocationEvent.getSpawnLocation()Gets player's spawn location.Methods in org.spigotmc.event.player with parameters of type LocationModifier and TypeMethodDescriptionvoidPlayerSpawnLocationEvent.setSpawnLocation(Location location) Sets player's spawn location.Constructors in org.spigotmc.event.player with parameters of type Location
World.locateNearestStructure(Location, Structure, int, boolean)orWorld.locateNearestStructure(Location, StructureType, int, boolean)instead.