Uses of Class
org.bukkit.Location
-
Packages that use Location Package Description org.bukkit The root package of the Bukkit API, contains generalized API classes.org.bukkit.block Classes used to manipulate the voxels in aworld, including special states.org.bukkit.boss Classes concerning the creation of boss bars that appear at the top of the player's screen.org.bukkit.command Classes relating to handling specialized non-chat player input.org.bukkit.configuration Classes dedicated to handling a plugin's runtime configuration.org.bukkit.entity Interfaces for non-voxel objects that can exist in aworld, including all players, monsters, projectiles, etc.org.bukkit.entity.memory Classes concerning an entity's persistent memory.org.bukkit.event.block org.bukkit.event.entity org.bukkit.event.player org.bukkit.event.vehicle Eventsrelating tovehicular entities.org.bukkit.event.world org.bukkit.generator Classes to facilitateworldgeneration implementation.org.bukkit.inventory Classes involved in manipulating player inventories and item interactions.org.bukkit.loot Classes relevant to loot table manipulation and generation.org.bukkit.util Multi and single purpose classes to facilitate various programmatic concepts.org.spigotmc.event.player Spigot-specific player events. -
-
Uses of Location in org.bukkit
Methods in org.bukkit that return Location Modifier and Type Method Description @NotNull LocationLocation. add(double x, double y, double z)Adds the location by another.@NotNull LocationLocation. add(@NotNull Location vec)Adds the location by another.@NotNull LocationLocation. add(@NotNull Vector vec)Adds the location by a vector.@NotNull LocationLocation. clone()static @NotNull LocationLocation. deserialize(@NotNull Map<String,Object> args)Required method for deserialization@Nullable LocationOfflinePlayer. 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.@NotNull LocationWorldBorder. getCenter()Gets the current border center.@NotNull LocationRaid. getLocation()Gets the center location where the raid occurs.@NotNull LocationWorld. getSpawnLocation()Gets the default spawnLocationof this world@Nullable LocationWorld. locateNearestStructure(@NotNull Location origin, @NotNull StructureType structureType, int radius, boolean findUnexplored)Find the closest nearby structure of a givenStructureType.@NotNull LocationLocation. multiply(double m)Performs scalar multiplication, multiplying all components with a scalar.@NotNull LocationLocation. setDirection(@NotNull Vector vector)@NotNull LocationLocation. subtract(double x, double y, double z)Subtracts the location by another.@NotNull LocationLocation. subtract(@NotNull Location vec)Subtracts the location by another.@NotNull LocationLocation. subtract(@NotNull Vector vec)Subtracts the location by a vector.@NotNull LocationLocation. zero()Zero this location's components.Methods in org.bukkit with parameters of type Location Modifier and Type Method Description @NotNull LocationLocation. add(@NotNull Location vec)Adds the location by another.static @NotNull ItemStackBukkit. createExplorerMap(@NotNull World world, @NotNull Location location, @NotNull StructureType structureType)Create a new explorer map targeting the closest nearby structure of a givenStructureType.static @NotNull ItemStackBukkit. 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.@NotNull ItemStackServer. createExplorerMap(@NotNull World world, @NotNull Location location, @NotNull StructureType structureType)Create a new explorer map targeting the closest nearby structure of a givenStructureType.@NotNull ItemStackServer. 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.booleanWorld. createExplosion(@NotNull Location loc, float power)Creates explosion at given coordinates with given powerbooleanWorld. createExplosion(@NotNull Location loc, float power, boolean setFire)Creates explosion at given coordinates with given power and optionally setting blocks on fire.booleanWorld. createExplosion(@NotNull 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(@NotNull Location loc, float power, boolean setFire, boolean breakBlocks, @Nullable Entity source)Creates explosion at given coordinates with given power and optionally setting blocks on fire or breaking blocks.doubleLocation. distance(@NotNull Location o)Get the distance between this location and another.doubleLocation. distanceSquared(@NotNull Location o)Get the squared distance between this location and another.@NotNull ItemWorld. dropItem(@NotNull Location location, @NotNull ItemStack item)Drops an item at the specifiedLocation@NotNull ItemWorld. dropItemNaturally(@NotNull Location location, @NotNull ItemStack item)Drops an item at the specifiedLocationwith a random offsetbooleanWorld. generateTree(@NotNull Location location, @NotNull TreeType type)Creates a tree at the givenLocationbooleanWorld. generateTree(@NotNull Location loc, @NotNull TreeType type, @NotNull BlockChangeDelegate delegate)Creates a tree at the givenLocation@NotNull BlockWorld. getBlockAt(@NotNull Location location)@NotNull ChunkWorld. getChunkAt(@NotNull Location location)@NotNull BlockWorld. getHighestBlockAt(@NotNull Location location)Gets the highest non-empty (impassable) block at the given coordinates.@NotNull BlockWorld. getHighestBlockAt(@NotNull Location location, @NotNull HeightMap heightMap)Gets the highest block corresponding to theHeightMapat the given coordinates.intWorld. getHighestBlockYAt(@NotNull Location location)Gets the highest non-empty (impassable) coordinate at the givenLocation.intWorld. getHighestBlockYAt(@NotNull Location location, @NotNull HeightMap heightMap)@NotNull Collection<Entity>World. getNearbyEntities(@NotNull Location location, double x, double y, double z)Returns a list of entities within a bounding box centered around a Location.@NotNull Collection<Entity>World. getNearbyEntities(@NotNull Location location, double x, double y, double z, @Nullable Predicate<Entity> filter)Returns a list of entities within a bounding box centered around a Location.booleanWorldBorder. isInside(@NotNull Location location)Check if the specified location is inside this border.@Nullable RaidWorld. locateNearestRaid(@NotNull Location location, int radius)Finds the nearest raid close to the given location.@Nullable LocationWorld. locateNearestStructure(@NotNull Location origin, @NotNull StructureType structureType, int radius, boolean findUnexplored)Find the closest nearby structure of a givenStructureType.voidWorld. playEffect(@NotNull Location location, @NotNull Effect effect, int data)Plays an effect to all players within a default radius around a given location.voidWorld. playEffect(@NotNull Location location, @NotNull Effect effect, int data, int radius)Plays an effect to all players within a given radius around a location.<T> voidWorld. playEffect(@NotNull Location location, @NotNull Effect effect, T data)Plays an effect to all players within a default radius around a given location.<T> voidWorld. playEffect(@NotNull Location location, @NotNull Effect effect, T data, int radius)Plays an effect to all players within a given radius around a location.voidWorld. playSound(@NotNull Location location, @NotNull String sound, float volume, float pitch)Play a Sound at the provided Location in the World.voidWorld. playSound(@NotNull Location location, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch)Play a Sound at the provided Location in the World.voidWorld. playSound(@NotNull Location location, @NotNull Sound sound, float volume, float pitch)Play a Sound at the provided Location in the WorldvoidWorld. playSound(@NotNull Location location, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch)Play a Sound at the provided Location in the World.@Nullable RayTraceResultWorld. rayTrace(@NotNull Location start, @NotNull Vector direction, double maxDistance, @NotNull FluidCollisionMode fluidCollisionMode, boolean ignorePassableBlocks, double raySize, @Nullable Predicate<Entity> filter)Performs a ray trace that checks for both block and entity collisions.@Nullable RayTraceResultWorld. rayTraceBlocks(@NotNull Location start, @NotNull Vector direction, double maxDistance)Performs a ray trace that checks for block collisions using the blocks' precise collision shapes.@Nullable RayTraceResultWorld. rayTraceBlocks(@NotNull Location start, @NotNull Vector direction, double maxDistance, @NotNull FluidCollisionMode fluidCollisionMode)Performs a ray trace that checks for block collisions using the blocks' precise collision shapes.@Nullable RayTraceResultWorld. rayTraceBlocks(@NotNull Location start, @NotNull Vector direction, double maxDistance, @NotNull FluidCollisionMode fluidCollisionMode, boolean ignorePassableBlocks)Performs a ray trace that checks for block collisions using the blocks' precise collision shapes.@Nullable RayTraceResultWorld. rayTraceEntities(@NotNull Location start, @NotNull Vector direction, double maxDistance)Performs a ray trace that checks for entity collisions.@Nullable RayTraceResultWorld. rayTraceEntities(@NotNull Location start, @NotNull Vector direction, double maxDistance, double raySize)Performs a ray trace that checks for entity collisions.@Nullable RayTraceResultWorld. rayTraceEntities(@NotNull Location start, @NotNull Vector direction, double maxDistance, double raySize, @Nullable Predicate<Entity> filter)Performs a ray trace that checks for entity collisions.@Nullable RayTraceResultWorld. rayTraceEntities(@NotNull Location start, @NotNull Vector direction, double maxDistance, @Nullable Predicate<Entity> filter)Performs a ray trace that checks for entity collisions.voidWorldBorder. setCenter(@NotNull Location location)Sets the new border center.@org.jetbrains.annotations.NotNull booleanWorld. setSpawnLocation(@NotNull Location location)Sets the spawn location of the world.<T extends Entity>
TWorld. spawn(@NotNull Location location, @NotNull Class<T> clazz)Spawn an entity of a specific class at the givenLocation<T extends Entity>
TWorld. spawn(@NotNull Location location, @NotNull Class<T> clazz, @Nullable Consumer<T> function)Spawn an entity of a specific class at the givenLocation, with the supplied function run before the entity is added to the world.@NotNull ArrowWorld. spawnArrow(@NotNull Location location, @NotNull Vector direction, float speed, float spread)<T extends AbstractArrow>
TWorld. spawnArrow(@NotNull Location location, @NotNull Vector direction, float speed, float spread, @NotNull Class<T> clazz)Creates an arrow entity of the given class at the givenLocation@NotNull EntityWorld. spawnEntity(@NotNull Location loc, @NotNull EntityType type)Creates a entity at the givenLocation@NotNull FallingBlockWorld. spawnFallingBlock(@NotNull Location location, @NotNull BlockData data)@NotNull FallingBlockWorld. spawnFallingBlock(@NotNull Location location, @NotNull MaterialData data)@NotNull FallingBlockWorld. spawnFallingBlock(@NotNull Location location, @NotNull Material material, byte data)Deprecated.Magic valuevoidWorld. spawnParticle(@NotNull Particle particle, @NotNull Location location, int count)Spawns the particle (the number of times specified by count) at the target location.voidWorld. spawnParticle(@NotNull Particle particle, @NotNull 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(@NotNull Particle particle, @NotNull 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(@NotNull Particle particle, @NotNull 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(@NotNull Particle particle, @NotNull 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(@NotNull Particle particle, @NotNull 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(@NotNull Particle particle, @NotNull Location location, int count, T data)Spawns the particle (the number of times specified by count) at the target location.@NotNull LightningStrikeWorld.Spigot. strikeLightning(@NotNull Location loc, boolean isSilent)Strikes lightning at the givenLocationand possibly without sound@NotNull LightningStrikeWorld. strikeLightning(@NotNull Location loc)Strikes lightning at the givenLocation@NotNull LightningStrikeWorld.Spigot. strikeLightningEffect(@NotNull Location loc, boolean isSilent)Strikes lightning at the givenLocationwithout doing damage and possibly without sound@NotNull LightningStrikeWorld. strikeLightningEffect(@NotNull Location loc)Strikes lightning at the givenLocationwithout doing damage@NotNull LocationLocation. subtract(@NotNull Location vec)Subtracts the location by another. -
Uses of Location in org.bukkit.block
Methods in org.bukkit.block that return Location Modifier and Type Method Description @Nullable LocationEndGateway. getExitLocation()Gets the location that entities are teleported to when entering the gateway portal.@Nullable LocationBeehive. getFlower()Get the hive's flower location.@NotNull LocationBlock. getLocation()Gets the Location of the block@Nullable LocationBlock. getLocation(@Nullable Location loc)Stores the location of the block in the provided Location object.@NotNull LocationBlockState. getLocation()Gets the location of this block state.@Nullable LocationBlockState. getLocation(@Nullable Location loc)Stores the location of this block state in the provided Location object.@NotNull LocationDoubleChest. getLocation()Methods in org.bukkit.block with parameters of type Location Modifier and Type Method Description @Nullable LocationBlock. getLocation(@Nullable Location loc)Stores the location of the block in the provided Location object.@Nullable LocationBlockState. getLocation(@Nullable Location loc)Stores the location of this block state in the provided Location object.@Nullable RayTraceResultBlock. rayTrace(@NotNull Location start, @NotNull Vector direction, double maxDistance, @NotNull 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(@Nullable Location location)Sets the exit location that entities are teleported to when they enter the gateway portal.voidBeehive. setFlower(@Nullable Location location)Set the hive's flower location. -
Uses of Location in org.bukkit.boss
Methods in org.bukkit.boss that return Location Modifier and Type Method Description @NotNull LocationDragonBattle. getEndPortalLocation()Get the location of the end portal. -
Uses of Location in org.bukkit.command
Methods in org.bukkit.command with parameters of type Location Modifier and Type Method Description @NotNull List<String>Command. tabComplete(@NotNull CommandSender sender, @NotNull String alias, @NotNull String[] args, @Nullable Location location)Executed on tab completion for this command, returning a list of options the player can tab through.@Nullable List<String>CommandMap. tabComplete(@NotNull CommandSender sender, @NotNull String cmdLine, @Nullable Location location)Looks for the requested command and executes an appropriate tab-completer if found.@Nullable List<String>SimpleCommandMap. tabComplete(@NotNull CommandSender sender, @NotNull String cmdLine, @Nullable Location location) -
Uses of Location in org.bukkit.configuration
Methods in org.bukkit.configuration that return Location Modifier and Type Method Description @Nullable LocationConfigurationSection. getLocation(@NotNull String path)Gets the requested Location by path.@Nullable LocationConfigurationSection. getLocation(@NotNull String path, @Nullable Location def)Gets the requestedLocationby path, returning a default value if not found.@Nullable LocationMemorySection. getLocation(@NotNull String path)@Nullable LocationMemorySection. getLocation(@NotNull String path, @Nullable Location def)Methods in org.bukkit.configuration with parameters of type Location Modifier and Type Method Description @Nullable LocationConfigurationSection. getLocation(@NotNull String path, @Nullable Location def)Gets the requestedLocationby path, returning a default value if not found.@Nullable LocationMemorySection. getLocation(@NotNull String path, @Nullable Location def) -
Uses of Location in org.bukkit.entity
Methods in org.bukkit.entity that return Location Modifier and Type Method Description @Nullable LocationEnderCrystal. getBeamTarget()Gets the location that this end crystal is pointing its beam to.@NotNull LocationHumanEntity. getBedLocation()Gets the location of the bed the player is currently sleeping in@Nullable LocationHumanEntity. 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.@NotNull LocationPlayer. getCompassTarget()Get the previously set compass target.@NotNull LocationLivingEntity. getEyeLocation()Get a Location detailing the current eye position of the living entity.@Nullable LocationBee. getFlower()Get the bee's flower location.@Nullable LocationBee. getHive()Get the bee's hive location.@NotNull LocationEntity. getLocation()Gets the entity's current position@Nullable LocationEntity. getLocation(@Nullable Location loc)Stores the entity's current position in the provided Location object.@NotNull LocationEnderSignal. getTargetLocation()Get the location this EnderSignal is moving towards.Methods in org.bukkit.entity with parameters of type Location Modifier and Type Method Description @Nullable LocationEntity. getLocation(@Nullable Location loc)Stores the entity's current position in the provided Location object.@Nullable InventoryViewHumanEntity. openEnchanting(@Nullable Location location, boolean force)Opens an empty enchanting inventory window with the player's inventory on the bottom.@Nullable InventoryViewHumanEntity. openWorkbench(@Nullable Location location, boolean force)Opens an empty workbench inventory window with the player's inventory on the bottom.voidPlayer. playEffect(@NotNull Location loc, @NotNull Effect effect, int data)Deprecated.Magic value<T> voidPlayer. playEffect(@NotNull Location loc, @NotNull Effect effect, T data)Plays an effect to just this player.voidPlayer. playNote(@NotNull Location loc, byte instrument, byte note)Deprecated.Magic valuevoidPlayer. playNote(@NotNull Location loc, @NotNull Instrument instrument, @NotNull Note note)Play a note for a player at a location.voidPlayer. playSound(@NotNull Location location, @NotNull String sound, float volume, float pitch)Play a sound for a player at the location.voidPlayer. playSound(@NotNull Location location, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch)Play a sound for a player at the location.voidPlayer. playSound(@NotNull Location location, @NotNull Sound sound, float volume, float pitch)Play a sound for a player at the location.voidPlayer. playSound(@NotNull Location location, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch)Play a sound for a player at the location.voidPlayer. sendBlockChange(@NotNull Location loc, @NotNull BlockData block)Send a block change.voidPlayer. sendBlockChange(@NotNull Location loc, @NotNull Material material, byte data)Deprecated.Magic valuebooleanPlayer. sendChunkChange(@NotNull Location loc, int sx, int sy, int sz, @org.jetbrains.annotations.NotNull byte[] data)Deprecated.Magic valuevoidPlayer. sendSignChange(@NotNull Location loc, @Nullable String[] lines)Send a sign change.voidPlayer. sendSignChange(@NotNull Location loc, @Nullable String[] lines, @NotNull DyeColor dyeColor)Send a sign change.voidEnderCrystal. setBeamTarget(@Nullable Location location)Sets the location that this end crystal is pointing to.voidHumanEntity. setBedSpawnLocation(@Nullable Location location)Sets the Location where the player will spawn at their bed.voidHumanEntity. setBedSpawnLocation(@Nullable Location location, boolean force)Sets the Location where the player will spawn at their bed.voidPlayer. setCompassTarget(@NotNull Location loc)Set the target of the player's compass.voidBee. setFlower(@Nullable Location location)Set the bee's flower location.voidBee. setHive(@Nullable Location location)Set the bee's hive location.voidEnderSignal. setTargetLocation(@NotNull Location location)Set theLocationthis EnderSignal is moving towards.booleanHumanEntity. sleep(@NotNull Location location, boolean force)Attempts to make the entity sleep at the given location.booleanVillager. sleep(@NotNull Location location)Attempts to make this villager sleep at the given location.voidPlayer. spawnParticle(@NotNull Particle particle, @NotNull Location location, int count)Spawns the particle (the number of times specified by count) at the target location.voidPlayer. spawnParticle(@NotNull Particle particle, @NotNull 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(@NotNull Particle particle, @NotNull 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(@NotNull Particle particle, @NotNull 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(@NotNull Particle particle, @NotNull 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(@NotNull Particle particle, @NotNull Location location, int count, T data)Spawns the particle (the number of times specified by count) at the target location.booleanEntity. teleport(@NotNull Location location)Teleports this entity to the given location.booleanEntity. teleport(@NotNull Location location, @NotNull 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 Location Modifier and Type Field Description static MemoryKey<Location>MemoryKey. HOMEstatic MemoryKey<Location>MemoryKey. JOB_SITEstatic MemoryKey<Location>MemoryKey. MEETING_POINT -
Uses of Location in org.bukkit.event.block
Methods in org.bukkit.event.block that return Location Modifier and Type Method Description @NotNull LocationBlockPistonRetractEvent. getRetractLocation()Deprecated. -
Uses of Location in org.bukkit.event.entity
Methods in org.bukkit.event.entity that return Location Modifier and Type Method Description @NotNull LocationEntityTeleportEvent. getFrom()Gets the location that this entity moved from@NotNull LocationEntityExplodeEvent. getLocation()Returns the location where the explosion happened.@NotNull LocationEntityPortalEnterEvent. getLocation()Gets the portal block the entity is touching@NotNull LocationEntitySpawnEvent. getLocation()Gets the location at which the entity is spawning.@NotNull LocationItemDespawnEvent. getLocation()Gets the location at which the item is despawning.@Nullable LocationEntityTeleportEvent. getTo()Gets the location that this entity moved toMethods in org.bukkit.event.entity with parameters of type Location Modifier and Type Method Description voidEntityTeleportEvent. setFrom(@NotNull Location from)Sets the location that this entity moved fromvoidEntityTeleportEvent. setTo(@Nullable Location to)Sets the location that this entity moved toConstructors in org.bukkit.event.entity with parameters of type Location Constructor Description EntityExplodeEvent(@NotNull Entity what, @NotNull Location location, @NotNull List<Block> blocks, float yield)EntityPortalEnterEvent(@NotNull Entity entity, @NotNull Location location)EntityPortalEvent(@NotNull Entity entity, @NotNull Location from, @Nullable Location to)EntityPortalEvent(@NotNull Entity entity, @NotNull Location from, @Nullable Location to, int searchRadius)EntityPortalExitEvent(@NotNull Entity entity, @NotNull Location from, @NotNull Location to, @NotNull Vector before, @NotNull Vector after)EntityTeleportEvent(@NotNull Entity what, @NotNull Location from, @Nullable Location to)ItemDespawnEvent(@NotNull Item despawnee, @NotNull Location loc)ItemSpawnEvent(@NotNull Item spawnee, Location loc)Deprecated. -
Uses of Location in org.bukkit.event.player
Methods in org.bukkit.event.player that return Location Modifier and Type Method Description @NotNull LocationPlayerMoveEvent. getFrom()Gets the location this player moved from@NotNull LocationPlayerRespawnEvent. getRespawnLocation()Gets the current respawn location@Nullable LocationPlayerMoveEvent. getTo()Gets the location this player moved toMethods in org.bukkit.event.player with parameters of type Location Modifier and Type Method Description voidPlayerMoveEvent. setFrom(@NotNull Location from)Sets the location to mark as where the player moved fromvoidPlayerRespawnEvent. setRespawnLocation(@NotNull Location respawnLocation)Sets the new respawn locationvoidPlayerMoveEvent. setTo(@NotNull Location to)Sets the location that this player will move toConstructors in org.bukkit.event.player with parameters of type Location Constructor Description PlayerMoveEvent(@NotNull Player player, @NotNull Location from, @Nullable Location to)PlayerPortalEvent(@NotNull Player player, @NotNull Location from, @Nullable Location to)PlayerPortalEvent(@NotNull Player player, @NotNull Location from, @Nullable Location to, @NotNull PlayerTeleportEvent.TeleportCause cause)PlayerPortalEvent(@NotNull Player player, @NotNull Location from, @Nullable Location to, @NotNull PlayerTeleportEvent.TeleportCause cause, int getSearchRadius, boolean canCreatePortal, int creationRadius)PlayerRespawnEvent(@NotNull Player respawnPlayer, @NotNull Location respawnLocation, boolean isBedSpawn)PlayerTeleportEvent(@NotNull Player player, @NotNull Location from, @Nullable Location to)PlayerTeleportEvent(@NotNull Player player, @NotNull Location from, @Nullable Location to, @NotNull PlayerTeleportEvent.TeleportCause cause) -
Uses of Location in org.bukkit.event.vehicle
Methods in org.bukkit.event.vehicle that return Location Modifier and Type Method Description @NotNull LocationVehicleMoveEvent. getFrom()Get the previous position.@NotNull LocationVehicleMoveEvent. getTo()Get the next position.Constructors in org.bukkit.event.vehicle with parameters of type Location Constructor Description VehicleMoveEvent(@NotNull Vehicle vehicle, @NotNull Location from, @NotNull Location to) -
Uses of Location in org.bukkit.event.world
Methods in org.bukkit.event.world that return Location Modifier and Type Method Description @NotNull LocationStructureGrowEvent. getLocation()Gets the location of the structure.@NotNull LocationSpawnChangeEvent. getPreviousLocation()Gets the previous spawn locationConstructors in org.bukkit.event.world with parameters of type Location Constructor Description SpawnChangeEvent(@NotNull World world, @NotNull Location previousLocation)StructureGrowEvent(@NotNull Location location, @NotNull TreeType species, boolean bonemeal, @Nullable Player player, @NotNull List<BlockState> blocks) -
Uses of Location in org.bukkit.generator
Methods in org.bukkit.generator that return Location Modifier and Type Method Description @Nullable LocationChunkGenerator. getFixedSpawnLocation(@NotNull World world, @NotNull Random random)Gets a fixed spawn location to use for a given world. -
Uses of Location in org.bukkit.inventory
Methods in org.bukkit.inventory that return Location Modifier and Type Method Description @Nullable LocationInventory. getLocation()Get the location of the block or entity which corresponds to this inventory. -
Uses of Location in org.bukkit.loot
Methods in org.bukkit.loot that return Location Modifier and Type Method Description @NotNull LocationLootContext. getLocation()TheLocationto store where the loot will be generated.Constructors in org.bukkit.loot with parameters of type Location Constructor Description Builder(@NotNull Location location)Creates a new LootContext.Builder instance to facilitate easy creation ofLootContexts. -
Uses of Location in org.bukkit.util
Methods in org.bukkit.util that return Location Modifier and Type Method Description @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.Methods in org.bukkit.util with parameters of type Location Modifier and Type Method Description static @NotNull BoundingBoxBoundingBox. of(@NotNull Location center, double x, double y, double z)Creates a new bounding box using the given center and extents.static @NotNull BoundingBoxBoundingBox. of(@NotNull Location corner1, @NotNull Location corner2)Creates a new bounding box using the coordinates of the given locations as corners.@NotNull BoundingBoxBoundingBox. shift(@NotNull Location shift)Shifts this bounding box by the given amounts.@NotNull BoundingBoxBoundingBox. union(@NotNull Location position)Expands this bounding box to contain (or border) the specified position.Constructors in org.bukkit.util with parameters of type Location Constructor Description BlockIterator(@NotNull Location loc)Constructs the BlockIterator.BlockIterator(@NotNull Location loc, double yOffset)Constructs the BlockIterator.BlockIterator(@NotNull 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 Location Modifier and Type Method Description @NotNull LocationPlayerSpawnLocationEvent. getSpawnLocation()Gets player's spawn location.Methods in org.spigotmc.event.player with parameters of type Location Modifier and Type Method Description voidPlayerSpawnLocationEvent. setSpawnLocation(@NotNull Location location)Sets player's spawn location.Constructors in org.spigotmc.event.player with parameters of type Location Constructor Description PlayerSpawnLocationEvent(@NotNull Player who, @NotNull Location spawnLocation)
-