|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Location | |
---|---|
org.bukkit | More generalized classes in the API. |
org.bukkit.block | Classes used to manipulate the voxels in a world ,
including special states. |
org.bukkit.entity | Interfaces for non-voxel objects that can exist in a world , including all players, monsters, projectiles, etc. |
org.bukkit.event.block | Events relating to when a block is changed or interacts with the world . |
org.bukkit.event.entity | Events relating to entities , excluding some directly referencing
some more specific entity types. |
org.bukkit.event.player | Events relating to players . |
org.bukkit.event.vehicle | Events relating to vehicular entities . |
org.bukkit.event.world | Events triggered by various world states or changes. |
org.bukkit.generator | Classes to facilitate world generation
implementation. |
org.bukkit.util | Multi and single purpose classes to facilitate various programmatic concepts. |
Uses of Location in org.bukkit |
---|
Methods in org.bukkit that return Location | |
---|---|
Location |
Location.add(double x,
double y,
double z)
Adds the location by another. |
Location |
Location.add(Location vec)
Adds the location by another. |
Location |
Location.add(Vector vec)
Adds the location by a vector. |
Location |
Location.clone()
|
Location |
TravelAgent.findOrCreate(Location location)
Attempt to find a portal near the given location, if a portal is not found it will attempt to create one. |
Location |
TravelAgent.findPortal(Location location)
Attempt to find a portal near the given location. |
Location |
OfflinePlayer.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. |
Location |
World.getSpawnLocation()
Gets the default spawn Location of this world |
Location |
Location.multiply(double m)
Performs scalar multiplication, multiplying all components with a scalar. |
Location |
Location.subtract(double x,
double y,
double z)
Subtracts the location by another. |
Location |
Location.subtract(Location vec)
Subtracts the location by another. |
Location |
Location.subtract(Vector vec)
Subtracts the location by a vector. |
Location |
Location.zero()
Zero this location's components. |
Methods in org.bukkit with parameters of type Location | ||
---|---|---|
Location |
Location.add(Location vec)
Adds the location by another. |
|
boolean |
World.createExplosion(Location loc,
float power)
Creates explosion at given coordinates with given power |
|
boolean |
World.createExplosion(Location loc,
float power,
boolean setFire)
Creates explosion at given coordinates with given power and optionally setting blocks on fire. |
|
boolean |
TravelAgent.createPortal(Location location)
Attempt to create a portal near the given location. |
|
double |
Location.distance(Location o)
Get the distance between this location and another. |
|
double |
Location.distanceSquared(Location o)
Get the squared distance between this location and another. |
|
Item |
World.dropItem(Location location,
ItemStack item)
Drops an item at the specified Location |
|
Item |
World.dropItemNaturally(Location location,
ItemStack item)
Drops an item at the specified Location with a random offset |
|
Location |
TravelAgent.findOrCreate(Location location)
Attempt to find a portal near the given location, if a portal is not found it will attempt to create one. |
|
Location |
TravelAgent.findPortal(Location location)
Attempt to find a portal near the given location. |
|
boolean |
World.generateTree(Location location,
TreeType type)
Creates a tree at the given Location |
|
boolean |
World.generateTree(Location loc,
TreeType type,
BlockChangeDelegate delegate)
Creates a tree at the given Location |
|
Block |
World.getBlockAt(Location location)
Gets the Block at the given Location |
|
int |
World.getBlockTypeIdAt(Location location)
Deprecated. Magic value |
|
Chunk |
World.getChunkAt(Location location)
Gets the Chunk at the given Location |
|
Block |
World.getHighestBlockAt(Location location)
Gets the highest non-empty block at the given coordinates |
|
int |
World.getHighestBlockYAt(Location location)
Gets the highest non-air coordinate at the given Location |
|
void |
World.playEffect(Location location,
Effect effect,
int data)
Plays an effect to all players within a default radius around a given location. |
|
void |
World.playEffect(Location location,
Effect effect,
int data,
int radius)
Plays an effect to all players within a given radius around a location. |
|
|
World.playEffect(Location location,
Effect effect,
T data)
Plays an effect to all players within a default radius around a given location. |
|
|
World.playEffect(Location location,
Effect effect,
T data,
int radius)
Plays an effect to all players within a given radius around a location. |
|
void |
World.playSound(Location location,
Sound sound,
float volume,
float pitch)
Play a Sound at the provided Location in the World |
|
|
World.spawn(Location location,
Class<T> clazz)
Spawn an entity of a specific class at the given Location |
|
Arrow |
World.spawnArrow(Location location,
Vector velocity,
float speed,
float spread)
Creates an Arrow entity at the given Location |
|
LivingEntity |
World.spawnCreature(Location loc,
CreatureType type)
Deprecated. |
|
LivingEntity |
World.spawnCreature(Location loc,
EntityType type)
Deprecated. Has issues spawning non LivingEntities. Use spawnEntity instead. |
|
Entity |
World.spawnEntity(Location loc,
EntityType type)
Creates a entity at the given Location |
|
FallingBlock |
World.spawnFallingBlock(Location location,
int blockId,
byte blockData)
Spawn a FallingBlock entity at the given Location of the specified blockId (converted to Material ) |
|
FallingBlock |
World.spawnFallingBlock(Location location,
Material material,
byte data)
Spawn a FallingBlock entity at the given Location of the specified Material . |
|
LightningStrike |
World.strikeLightning(Location loc)
Strikes lightning at the given Location |
|
LightningStrike |
World.strikeLightningEffect(Location loc)
Strikes lightning at the given Location without doing damage |
|
Location |
Location.subtract(Location vec)
Subtracts the location by another. |
Uses of Location in org.bukkit.block |
---|
Methods in org.bukkit.block that return Location | |
---|---|
Location |
Block.getLocation()
Gets the Location of the block |
Location |
BlockState.getLocation()
Gets the location of this block |
Location |
DoubleChest.getLocation()
|
Location |
Block.getLocation(Location loc)
Stores the location of the block in the provided Location object. If the provided Location is null this method does nothing and returns null. |
Location |
BlockState.getLocation(Location loc)
Stores the location of this block in the provided Location object. If the provided Location is null this method does nothing and returns null. |
Methods in org.bukkit.block with parameters of type Location | |
---|---|
Location |
Block.getLocation(Location loc)
Stores the location of the block in the provided Location object. If the provided Location is null this method does nothing and returns null. |
Location |
BlockState.getLocation(Location loc)
Stores the location of this block in the provided Location object. If the provided Location is null this method does nothing and returns null. |
Uses of Location in org.bukkit.entity |
---|
Methods in org.bukkit.entity that return Location | |
---|---|
Location |
Player.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. |
Location |
Player.getCompassTarget()
Get the previously set compass target. |
Location |
LivingEntity.getEyeLocation()
Get a Location detailing the current eye position of the living entity. |
Location |
Entity.getLocation()
Gets the entity's current position |
Location |
Entity.getLocation(Location loc)
Stores the entity's current position in the provided Location object. If the provided Location is null this method does nothing and returns null. |
Methods in org.bukkit.entity with parameters of type Location | ||
---|---|---|
Location |
Entity.getLocation(Location loc)
Stores the entity's current position in the provided Location object. If the provided Location is null this method does nothing and returns null. |
|
InventoryView |
HumanEntity.openEnchanting(Location location,
boolean force)
Opens an empty enchanting inventory window with the player's inventory on the bottom. |
|
InventoryView |
HumanEntity.openWorkbench(Location location,
boolean force)
Opens an empty workbench inventory window with the player's inventory on the bottom. |
|
void |
Player.playEffect(Location loc,
Effect effect,
int data)
Deprecated. Magic value |
|
|
Player.playEffect(Location loc,
Effect effect,
T data)
Plays an effect to just this player. |
|
void |
Player.playNote(Location loc,
byte instrument,
byte note)
Deprecated. Magic value |
|
void |
Player.playNote(Location loc,
Instrument instrument,
Note note)
Play a note for a player at a location. |
|
void |
Player.playSound(Location location,
Sound sound,
float volume,
float pitch)
Play a sound for a player at the location. |
|
void |
Player.playSound(Location location,
String sound,
float volume,
float pitch)
Deprecated. Magic value |
|
void |
Player.sendBlockChange(Location loc,
int material,
byte data)
Deprecated. Magic value |
|
void |
Player.sendBlockChange(Location loc,
Material material,
byte data)
Deprecated. Magic value |
|
boolean |
Player.sendChunkChange(Location loc,
int sx,
int sy,
int sz,
byte[] data)
Deprecated. Magic value |
|
void |
Player.setBedSpawnLocation(Location location)
Sets the Location where the player will spawn at their bed. |
|
void |
Player.setBedSpawnLocation(Location location,
boolean force)
Sets the Location where the player will spawn at their bed. |
|
void |
Player.setCompassTarget(Location loc)
Set the target of the player's compass. |
|
boolean |
Entity.teleport(Location location)
Teleports this entity to the given location |
|
boolean |
Entity.teleport(Location location,
PlayerTeleportEvent.TeleportCause cause)
Teleports this entity to the given location |
Uses of Location in org.bukkit.event.block |
---|
Methods in org.bukkit.event.block that return Location | |
---|---|
Location |
BlockPistonRetractEvent.getRetractLocation()
Gets the location where the possible moving block might be if the retracting piston is sticky. |
Uses of Location in org.bukkit.event.entity |
---|
Methods in org.bukkit.event.entity that return Location | |
---|---|
Location |
EntityTeleportEvent.getFrom()
Gets the location that this entity moved from |
Location |
ItemDespawnEvent.getLocation()
Gets the location at which the item is despawning. |
Location |
CreatureSpawnEvent.getLocation()
Gets the location at which the creature is spawning. |
Location |
EntityExplodeEvent.getLocation()
Returns the location where the explosion happened. |
Location |
ItemSpawnEvent.getLocation()
Gets the location at which the item is spawning. |
Location |
EntityPortalEnterEvent.getLocation()
Gets the portal block the entity is touching |
Location |
EntityTeleportEvent.getTo()
Gets the location that this entity moved to |
Methods in org.bukkit.event.entity with parameters of type Location | |
---|---|
void |
EntityTeleportEvent.setFrom(Location from)
Sets the location that this entity moved from |
void |
EntityTeleportEvent.setTo(Location to)
Sets the location that this entity moved to |
Constructors in org.bukkit.event.entity with parameters of type Location | |
---|---|
CreatureSpawnEvent(Entity spawnee,
CreatureType type,
Location loc,
CreatureSpawnEvent.SpawnReason reason)
Deprecated. |
|
EntityExplodeEvent(Entity what,
Location location,
List<Block> blocks,
float yield)
|
|
EntityPortalEnterEvent(Entity entity,
Location location)
|
|
EntityPortalEvent(Entity entity,
Location from,
Location to,
TravelAgent pta)
|
|
EntityPortalExitEvent(Entity entity,
Location from,
Location to,
Vector before,
Vector after)
|
|
EntityTeleportEvent(Entity what,
Location from,
Location to)
|
|
ItemDespawnEvent(Item despawnee,
Location loc)
|
|
ItemSpawnEvent(Item spawnee,
Location loc)
|
Uses of Location in org.bukkit.event.player |
---|
Methods in org.bukkit.event.player that return Location | |
---|---|
Location |
PlayerMoveEvent.getFrom()
Gets the location this player moved from |
Location |
PlayerRespawnEvent.getRespawnLocation()
Gets the current respawn location |
Location |
PlayerMoveEvent.getTo()
Gets the location this player moved to |
Methods in org.bukkit.event.player with parameters of type Location | |
---|---|
void |
PlayerMoveEvent.setFrom(Location from)
Sets the location to mark as where the player moved from |
void |
PlayerRespawnEvent.setRespawnLocation(Location respawnLocation)
Sets the new respawn location |
void |
PlayerMoveEvent.setTo(Location to)
Sets the location that this player will move to |
Constructors in org.bukkit.event.player with parameters of type Location | |
---|---|
PlayerMoveEvent(Player player,
Location from,
Location to)
|
|
PlayerPortalEvent(Player player,
Location from,
Location to,
TravelAgent pta)
|
|
PlayerPortalEvent(Player player,
Location from,
Location to,
TravelAgent pta,
PlayerTeleportEvent.TeleportCause cause)
|
|
PlayerRespawnEvent(Player respawnPlayer,
Location respawnLocation,
boolean isBedSpawn)
|
|
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 Location | |
---|---|
Location |
VehicleMoveEvent.getFrom()
Get the previous position. |
Location |
VehicleMoveEvent.getTo()
Get the next position. |
Constructors in org.bukkit.event.vehicle with parameters of type Location | |
---|---|
VehicleMoveEvent(Vehicle vehicle,
Location from,
Location to)
|
Uses of Location in org.bukkit.event.world |
---|
Methods in org.bukkit.event.world that return Location | |
---|---|
Location |
StructureGrowEvent.getLocation()
Gets the location of the structure. |
Location |
SpawnChangeEvent.getPreviousLocation()
Gets the previous spawn location |
Constructors in org.bukkit.event.world with parameters of type Location | |
---|---|
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 Location | |
---|---|
Location |
ChunkGenerator.getFixedSpawnLocation(World world,
Random random)
Gets a fixed spawn location to use for a given world. |
Uses of Location in org.bukkit.util |
---|
Methods in org.bukkit.util that return Location | |
---|---|
Location |
Vector.toLocation(World world)
Gets a Location version of this vector with yaw and pitch being 0. |
Location |
Vector.toLocation(World world,
float yaw,
float pitch)
Gets a Location version of this vector. |
Constructors in org.bukkit.util with parameters of type Location | |
---|---|
BlockIterator(Location loc)
Constructs the BlockIterator. |
|
BlockIterator(Location loc,
double yOffset)
Constructs the BlockIterator. |
|
BlockIterator(Location loc,
double yOffset,
int maxDistance)
Constructs the BlockIterator |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |