Package | Description |
---|---|
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.command |
Classes relating to handling specialized non-chat player input.
|
org.bukkit.entity |
Interfaces for non-voxel objects that can exist in a
world , including all players, monsters, projectiles, etc. |
org.bukkit.event.block | |
org.bukkit.event.enchantment |
Events triggered from an enchantment table . |
org.bukkit.event.entity | |
org.bukkit.event.hanging |
Events relating to entities that hang . |
org.bukkit.event.inventory | |
org.bukkit.event.painting | |
org.bukkit.event.player | |
org.bukkit.event.vehicle |
Events relating to vehicular entities . |
org.bukkit.event.world | |
org.bukkit.projectiles |
Classes to represent the source of a projectile
|
org.bukkit.util |
Multi and single purpose classes to facilitate various programmatic
concepts.
|
Modifier and Type | Method and Description |
---|---|
Block |
Location.getBlock()
Gets the block at the represented location
|
Block |
Chunk.getBlock(int x,
int y,
int z)
Gets a block from this chunk
|
Block |
World.getBlockAt(int x,
int y,
int z)
Gets the
Block at the given coordinates |
Block |
World.getBlockAt(Location location)
|
Block |
World.getHighestBlockAt(int x,
int z)
Gets the highest non-empty block at the given coordinates
|
Block |
World.getHighestBlockAt(Location location)
Gets the highest non-empty block at the given coordinates
|
Modifier and Type | Method and Description |
---|---|
Chunk |
World.getChunkAt(Block block)
|
Modifier and Type | Method and Description |
---|---|
Block |
BlockState.getBlock()
Gets the block represented by this BlockState
|
Block |
Block.getRelative(BlockFace face)
Gets the block at the given face
|
Block |
Block.getRelative(BlockFace face,
int distance)
Gets the block at the given distance of the given face
|
Block |
Block.getRelative(int modX,
int modY,
int modZ)
Gets the block at the given offsets
|
Modifier and Type | Method and Description |
---|---|
BlockFace |
Block.getFace(Block block)
Gets the face relation of this block compared to the given block.
|
Modifier and Type | Method and Description |
---|---|
Block |
BlockCommandSender.getBlock()
Returns the block this command sender belongs to
|
Modifier and Type | Method and Description |
---|---|
Block |
LivingEntity.getTargetBlock(HashSet<Byte> transparent,
int maxDistance)
Deprecated.
Magic value
|
Block |
LivingEntity.getTargetBlock(Set<Material> transparent,
int maxDistance)
Gets the block that the living entity has targeted.
|
Modifier and Type | Method and Description |
---|---|
List<Block> |
LivingEntity.getLastTwoTargetBlocks(HashSet<Byte> transparent,
int maxDistance)
Deprecated.
Magic value
|
List<Block> |
LivingEntity.getLastTwoTargetBlocks(Set<Material> transparent,
int maxDistance)
Gets the last two blocks along the living entity's line of sight.
|
List<Block> |
LivingEntity.getLineOfSight(HashSet<Byte> transparent,
int maxDistance)
Deprecated.
Magic value
|
List<Block> |
LivingEntity.getLineOfSight(Set<Material> transparent,
int maxDistance)
Gets all blocks along the living entity's line of sight.
|
Modifier and Type | Field and Description |
---|---|
protected Block |
BlockEvent.block |
protected Block |
BlockPlaceEvent.placedAgainst |
protected Block |
BlockFromToEvent.to |
Modifier and Type | Method and Description |
---|---|
Block |
BlockEvent.getBlock()
Gets the block involved in this event.
|
Block |
BlockPlaceEvent.getBlockAgainst()
Gets the block that this block was placed against
|
Block |
BlockPlaceEvent.getBlockPlaced()
Clarity method for getting the placed block.
|
Block |
BlockIgniteEvent.getIgnitingBlock()
Gets the block who ignited this block
|
Block |
BlockSpreadEvent.getSource()
Gets the source block involved in this event.
|
Block |
BlockFromToEvent.getToBlock()
Convenience method for getting the faced Block.
|
Modifier and Type | Method and Description |
---|---|
List<Block> |
BlockExplodeEvent.blockList()
Returns the list of blocks that would have been removed or were removed
from the explosion event.
|
List<Block> |
BlockPistonRetractEvent.getBlocks()
Get an immutable list of the blocks which will be moved by the
extending.
|
List<Block> |
BlockPistonExtendEvent.getBlocks()
Get an immutable list of the blocks which will be moved by the
extending.
|
Constructor and Description |
---|
BlockBreakEvent(Block theBlock,
Player player) |
BlockBurnEvent(Block block) |
BlockCanBuildEvent(Block block,
int id,
boolean canBuild)
Deprecated.
Magic value
|
BlockDamageEvent(Player player,
Block block,
ItemStack itemInHand,
boolean instaBreak) |
BlockDispenseEvent(Block block,
ItemStack dispensed,
Vector velocity) |
BlockEvent(Block theBlock) |
BlockExpEvent(Block block,
int exp) |
BlockExplodeEvent(Block what,
List<Block> blocks,
float yield) |
BlockFadeEvent(Block block,
BlockState newState) |
BlockFormEvent(Block block,
BlockState newState) |
BlockFromToEvent(Block block,
Block toBlock) |
BlockFromToEvent(Block block,
BlockFace face) |
BlockGrowEvent(Block block,
BlockState newState) |
BlockIgniteEvent(Block theBlock,
BlockIgniteEvent.IgniteCause cause,
Block ignitingBlock) |
BlockIgniteEvent(Block theBlock,
BlockIgniteEvent.IgniteCause cause,
Entity ignitingEntity) |
BlockIgniteEvent(Block theBlock,
BlockIgniteEvent.IgniteCause cause,
Entity ignitingEntity,
Block ignitingBlock) |
BlockIgniteEvent(Block theBlock,
BlockIgniteEvent.IgniteCause cause,
Player thePlayer)
Deprecated.
|
BlockMultiPlaceEvent(List<BlockState> states,
Block clicked,
ItemStack itemInHand,
Player thePlayer,
boolean canBuild) |
BlockPhysicsEvent(Block block,
int changed)
Deprecated.
Magic value
|
BlockPistonEvent(Block block,
BlockFace direction) |
BlockPistonExtendEvent(Block block,
int length,
BlockFace direction)
Deprecated.
|
BlockPistonExtendEvent(Block block,
List<Block> blocks,
BlockFace direction) |
BlockPistonRetractEvent(Block block,
List<Block> blocks,
BlockFace direction) |
BlockPlaceEvent(Block placedBlock,
BlockState replacedBlockState,
Block placedAgainst,
ItemStack itemInHand,
Player thePlayer,
boolean canBuild) |
BlockRedstoneEvent(Block block,
int oldCurrent,
int newCurrent) |
BlockSpreadEvent(Block block,
Block source,
BlockState newState) |
EntityBlockFormEvent(Entity entity,
Block block,
BlockState blockstate) |
LeavesDecayEvent(Block block) |
NotePlayEvent(Block block,
Instrument instrument,
Note note) |
SignChangeEvent(Block theBlock,
Player thePlayer,
String[] theLines) |
Constructor and Description |
---|
BlockExplodeEvent(Block what,
List<Block> blocks,
float yield) |
BlockPistonExtendEvent(Block block,
List<Block> blocks,
BlockFace direction) |
BlockPistonRetractEvent(Block block,
List<Block> blocks,
BlockFace direction) |
Modifier and Type | Method and Description |
---|---|
Block |
EnchantItemEvent.getEnchantBlock()
Gets the block being used to enchant the item
|
Block |
PrepareItemEnchantEvent.getEnchantBlock()
Gets the block being used to enchant the item
|
Constructor and Description |
---|
EnchantItemEvent(Player enchanter,
InventoryView view,
Block table,
ItemStack item,
int level,
Map<Enchantment,Integer> enchants,
int i) |
PrepareItemEnchantEvent(Player enchanter,
InventoryView view,
Block table,
ItemStack item,
int[] levelsOffered,
int bonus) |
Modifier and Type | Field and Description |
---|---|
protected Block |
EntityInteractEvent.block |
Modifier and Type | Method and Description |
---|---|
Block |
EntityChangeBlockEvent.getBlock()
Gets the block the entity is changing
|
Block |
EntityInteractEvent.getBlock()
Returns the involved block
|
Block |
EntityCombustByBlockEvent.getCombuster()
The combuster can be lava or a block that is on fire.
|
Block |
EntityDamageByBlockEvent.getDamager()
Returns the block that damaged the player.
|
Modifier and Type | Method and Description |
---|---|
List<Block> |
EntityExplodeEvent.blockList()
Returns the list of blocks that would have been removed or were removed
from the explosion event.
|
Constructor and Description |
---|
EntityBreakDoorEvent(LivingEntity entity,
Block targetBlock) |
EntityChangeBlockEvent(Entity what,
Block block,
Material to,
byte data)
Deprecated.
Magic value
|
EntityChangeBlockEvent(LivingEntity what,
Block block,
Material to)
Deprecated.
Provided as a backward compatibility before the data byte
was provided, and type increased to all entities
|
EntityCombustByBlockEvent(Block combuster,
Entity combustee,
int duration) |
EntityDamageByBlockEvent(Block damager,
Entity damagee,
EntityDamageEvent.DamageCause cause,
double damage)
Deprecated.
|
EntityDamageByBlockEvent(Block damager,
Entity damagee,
EntityDamageEvent.DamageCause cause,
int damage)
Deprecated.
|
EntityDamageByBlockEvent(Block damager,
Entity damagee,
EntityDamageEvent.DamageCause cause,
Map<EntityDamageEvent.DamageModifier,Double> modifiers,
Map<EntityDamageEvent.DamageModifier,? extends com.google.common.base.Function<? super Double,Double>> modifierFunctions) |
EntityInteractEvent(Entity entity,
Block block) |
Constructor and Description |
---|
EntityExplodeEvent(Entity what,
Location location,
List<Block> blocks,
float yield) |
Modifier and Type | Method and Description |
---|---|
Block |
HangingPlaceEvent.getBlock()
Returns the block that the hanging entity was placed on
|
Constructor and Description |
---|
HangingPlaceEvent(Hanging hanging,
Player player,
Block block,
BlockFace blockFace) |
Modifier and Type | Method and Description |
---|---|
Block |
FurnaceSmeltEvent.getFurnace()
Deprecated.
In favour of
BlockEvent.getBlock() . |
Block |
FurnaceBurnEvent.getFurnace()
Deprecated.
In favour of
BlockEvent.getBlock() . |
Constructor and Description |
---|
BrewEvent(Block brewer,
BrewerInventory contents) |
FurnaceBurnEvent(Block furnace,
ItemStack fuel,
int burnTime) |
FurnaceExtractEvent(Player player,
Block block,
Material itemType,
int itemAmount,
int exp) |
FurnaceSmeltEvent(Block furnace,
ItemStack source,
ItemStack result) |
Modifier and Type | Method and Description |
---|---|
Block |
PaintingPlaceEvent.getBlock()
Deprecated.
Returns the block that the painting was placed on
|
Constructor and Description |
---|
PaintingPlaceEvent(Painting painting,
Player player,
Block block,
BlockFace blockFace)
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
protected Block |
PlayerInteractEvent.blockClicked |
Modifier and Type | Method and Description |
---|---|
Block |
PlayerBedEnterEvent.getBed()
Returns the bed block involved in this event.
|
Block |
PlayerBedLeaveEvent.getBed()
Returns the bed block involved in this event.
|
Block |
PlayerBucketEvent.getBlockClicked()
Return the block clicked
|
Block |
PlayerInteractEvent.getClickedBlock()
Returns the clicked block
|
Constructor and Description |
---|
PlayerBedEnterEvent(Player who,
Block bed) |
PlayerBedLeaveEvent(Player who,
Block bed) |
PlayerBucketEmptyEvent(Player who,
Block blockClicked,
BlockFace blockFace,
Material bucket,
ItemStack itemInHand) |
PlayerBucketEvent(Player who,
Block blockClicked,
BlockFace blockFace,
Material bucket,
ItemStack itemInHand) |
PlayerBucketFillEvent(Player who,
Block blockClicked,
BlockFace blockFace,
Material bucket,
ItemStack itemInHand) |
PlayerInteractEvent(Player who,
Action action,
ItemStack item,
Block clickedBlock,
BlockFace clickedFace) |
Modifier and Type | Method and Description |
---|---|
Block |
VehicleBlockCollisionEvent.getBlock()
Gets the block the vehicle collided with
|
Constructor and Description |
---|
VehicleBlockCollisionEvent(Vehicle vehicle,
Block block) |
Modifier and Type | Method and Description |
---|---|
ArrayList<Block> |
PortalCreateEvent.getBlocks()
Gets an array list of all the blocks associated with the created portal
|
Constructor and Description |
---|
PortalCreateEvent(Collection<Block> blocks,
World world,
PortalCreateEvent.CreateReason reason) |
Modifier and Type | Method and Description |
---|---|
Block |
BlockProjectileSource.getBlock()
Gets the block this projectile source belongs to.
|
Modifier and Type | Method and Description |
---|---|
Block |
BlockIterator.next()
Returns the next Block in the trace
|
Copyright © 2016. All rights reserved.