Uses of Interface
org.bukkit.block.Block
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 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.player | |
org.bukkit.event.vehicle |
Events relating to vehicular entities . |
org.bukkit.inventory |
Classes involved in manipulating player inventories and item interactions.
|
org.bukkit.projectiles |
Classes to represent the source of a projectile
|
org.bukkit.util |
Multi and single purpose classes to facilitate various programmatic
concepts.
|
-
Uses of Block in org.bukkit
Methods in org.bukkit that return Block Modifier and Type Method Description Block
Chunk. getBlock(int x, int y, int z)
Gets a block from this chunkBlock
Location. getBlock()
Gets the block at the represented locationBlock
World. getBlockAt(int x, int y, int z)
Gets theBlock
at the given coordinatesBlock
World. getBlockAt(Location location)
Block
World. getHighestBlockAt(int x, int z)
Gets the highest non-empty (impassable) block at the given coordinates.Block
World. getHighestBlockAt(int x, int z, HeightMap heightMap)
Gets the highest block corresponding to theHeightMap
at the given coordinates.Block
World. getHighestBlockAt(Location location)
Gets the highest non-empty (impassable) block at the given coordinates.Block
World. getHighestBlockAt(Location location, HeightMap heightMap)
Gets the highest block corresponding to theHeightMap
at the given coordinates.Methods in org.bukkit with parameters of type Block Modifier and Type Method Description Chunk
World. getChunkAt(Block block)
-
Uses of Block in org.bukkit.block
Methods in org.bukkit.block that return Block Modifier and Type Method Description Block
BlockState. getBlock()
Gets the block represented by this block state.Block
Block. getRelative(int modX, int modY, int modZ)
Gets the block at the given offsetsBlock
Block. getRelative(BlockFace face)
Gets the block at the given faceBlock
Block. getRelative(BlockFace face, int distance)
Gets the block at the given distance of the given faceMethods in org.bukkit.block with parameters of type Block Modifier and Type Method Description BlockFace
Block. getFace(Block block)
Gets the face relation of this block compared to the given block. -
Uses of Block in org.bukkit.command
Methods in org.bukkit.command that return Block Modifier and Type Method Description Block
BlockCommandSender. getBlock()
Returns the block this command sender belongs to -
Uses of Block in org.bukkit.entity
Methods in org.bukkit.entity that return Block Modifier and Type Method Description Block
AbstractArrow. getAttachedBlock()
Gets the block to which this arrow is attached.Block
Raider. getPatrolTarget()
Gets the block the raider is targeting to patrol.Block
LivingEntity. getTargetBlock(Set<Material> transparent, int maxDistance)
Gets the block that the living entity has targeted.Block
LivingEntity. getTargetBlockExact(int maxDistance)
Gets the block that the living entity has targeted.Block
LivingEntity. getTargetBlockExact(int maxDistance, FluidCollisionMode fluidCollisionMode)
Gets the block that the living entity has targeted.Methods in org.bukkit.entity that return types with arguments of type Block Modifier and Type Method Description 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(Set<Material> transparent, int maxDistance)
Gets all blocks along the living entity's line of sight.Methods in org.bukkit.entity with parameters of type Block Modifier and Type Method Description void
Raider. setPatrolTarget(Block block)
Sets the block the raider is targeting to patrol. -
Uses of Block in org.bukkit.event.block
Fields in org.bukkit.event.block declared as Block Modifier and Type Field Description protected Block
BlockEvent. block
protected Block
BlockPlaceEvent. placedAgainst
protected Block
BlockFromToEvent. to
Methods in org.bukkit.event.block that return Block Modifier and Type Method Description Block
BlockEvent. getBlock()
Gets the block involved in this event.Block
BlockPlaceEvent. getBlockAgainst()
Gets the block that this block was placed againstBlock
BlockPlaceEvent. getBlockPlaced()
Clarity method for getting the placed block.Block
BlockBurnEvent. getIgnitingBlock()
Gets the block which ignited this block.Block
BlockIgniteEvent. getIgnitingBlock()
Gets the block which ignited this blockBlock
BlockSpreadEvent. getSource()
Gets the source block involved in this event.Block
BlockPhysicsEvent. getSourceBlock()
Gets the source block that triggered this event.Block
BlockFromToEvent. getToBlock()
Convenience method for getting the faced Block.Methods in org.bukkit.event.block that return types with arguments of type Block Modifier and Type Method Description List<Block>
BlockExplodeEvent. blockList()
Returns the list of blocks that would have been removed or were removed from the explosion event.List<Block>
BlockPistonExtendEvent. getBlocks()
Get an immutable list of the blocks which will be moved by the extending.List<Block>
BlockPistonRetractEvent. getBlocks()
Get an immutable list of the blocks which will be moved by the extending.Constructor parameters in org.bukkit.event.block with type arguments of type Block Constructor 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)
-
Uses of Block in org.bukkit.event.enchantment
Methods in org.bukkit.event.enchantment that return Block Modifier and Type Method Description Block
EnchantItemEvent. getEnchantBlock()
Gets the block being used to enchant the itemBlock
PrepareItemEnchantEvent. getEnchantBlock()
Gets the block being used to enchant the itemConstructors in org.bukkit.event.enchantment with parameters of type Block Constructor 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, EnchantmentOffer[] offers, int bonus)
-
Uses of Block in org.bukkit.event.entity
Fields in org.bukkit.event.entity declared as Block Modifier and Type Field Description protected Block
EntityInteractEvent. block
Methods in org.bukkit.event.entity that return Block Modifier and Type Method Description Block
EntityChangeBlockEvent. getBlock()
Gets the block the entity is changingBlock
EntityEnterBlockEvent. getBlock()
Get the block the entity will enter.Block
EntityInteractEvent. getBlock()
Returns the involved blockBlock
EntityPlaceEvent. getBlock()
Deprecated.Returns the block that the entity was placed onBlock
EntityCombustByBlockEvent. getCombuster()
The combuster can be lava or a block that is on fire.Block
EntityDamageByBlockEvent. getDamager()
Returns the block that damaged the player.Block
ProjectileHitEvent. getHitBlock()
Gets the block that was hit, if it was a block that was hit.Methods in org.bukkit.event.entity that return types with arguments of type Block Modifier and Type Method Description List<Block>
EntityExplodeEvent. blockList()
Returns the list of blocks that would have been removed or were removed from the explosion event.Constructor parameters in org.bukkit.event.entity with type arguments of type Block Constructor Description EntityExplodeEvent(Entity what, Location location, List<Block> blocks, float yield)
-
Uses of Block in org.bukkit.event.hanging
Methods in org.bukkit.event.hanging that return Block Modifier and Type Method Description Block
HangingPlaceEvent. getBlock()
Returns the block that the hanging entity was placed onConstructors in org.bukkit.event.hanging with parameters of type Block Constructor Description HangingPlaceEvent(Hanging hanging, Player player, Block block, BlockFace blockFace)
-
Uses of Block in org.bukkit.event.inventory
Constructors in org.bukkit.event.inventory with parameters of type Block Constructor Description BrewEvent(Block brewer, BrewerInventory contents, int fuelLevel)
BrewingStandFuelEvent(Block brewingStand, ItemStack fuel, int fuelPower)
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)
-
Uses of Block in org.bukkit.event.player
Fields in org.bukkit.event.player declared as Block Modifier and Type Field Description protected Block
PlayerInteractEvent. blockClicked
Methods in org.bukkit.event.player that return Block Modifier and Type Method 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. getBlock()
Gets the block involved in this event.Block
PlayerBucketEvent. getBlockClicked()
Return the block clickedBlock
PlayerInteractEvent. getClickedBlock()
Returns the clicked blockBlock
PlayerHarvestBlockEvent. getHarvestedBlock()
Gets the block that is being harvested.Constructors in org.bukkit.event.player with parameters of type Block Constructor Description PlayerBedEnterEvent(Player who, Block bed)
Deprecated.PlayerBedEnterEvent(Player who, Block bed, PlayerBedEnterEvent.BedEnterResult bedEnterResult)
PlayerBedLeaveEvent(Player who, Block bed, boolean setBedSpawn)
PlayerBucketEmptyEvent(Player who, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand)
Deprecated.PlayerBucketEmptyEvent(Player who, Block block, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand)
PlayerBucketEvent(Player who, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand)
Deprecated.PlayerBucketEvent(Player who, Block block, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand)
PlayerBucketFillEvent(Player who, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand)
Deprecated.PlayerBucketFillEvent(Player who, Block block, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand)
PlayerHarvestBlockEvent(Player player, Block harvestedBlock, List<ItemStack> itemsHarvested)
PlayerInteractEvent(Player who, Action action, ItemStack item, Block clickedBlock, BlockFace clickedFace)
PlayerInteractEvent(Player who, Action action, ItemStack item, Block clickedBlock, BlockFace clickedFace, EquipmentSlot hand)
-
Uses of Block in org.bukkit.event.vehicle
Methods in org.bukkit.event.vehicle that return Block Modifier and Type Method Description Block
VehicleBlockCollisionEvent. getBlock()
Gets the block the vehicle collided withConstructors in org.bukkit.event.vehicle with parameters of type Block Constructor Description VehicleBlockCollisionEvent(Vehicle vehicle, Block block)
-
Uses of Block in org.bukkit.inventory
Methods in org.bukkit.inventory that return Block Modifier and Type Method Description Block
BlockInventoryHolder. getBlock()
Gets the block associated with this holder. -
Uses of Block in org.bukkit.projectiles
Methods in org.bukkit.projectiles that return Block Modifier and Type Method Description Block
BlockProjectileSource. getBlock()
Gets the block this projectile source belongs to. -
Uses of Block in org.bukkit.util
Methods in org.bukkit.util that return Block Modifier and Type Method Description Block
RayTraceResult. getHitBlock()
Gets the hit block.Block
BlockIterator. next()
Returns the next Block in the traceMethods in org.bukkit.util with parameters of type Block Modifier and Type Method Description static BoundingBox
BoundingBox. of(Block block)
Creates a new 1x1x1 sized bounding box containing the given block.static BoundingBox
BoundingBox. of(Block corner1, Block corner2)
Creates a new bounding box using the coordinates of the given blocks as corners.Constructors in org.bukkit.util with parameters of type Block Constructor Description RayTraceResult(Vector hitPosition, Block hitBlock, BlockFace hitBlockFace)
Creates a RayTraceResult.