Uses of Interface
org.bukkit.block.Block
-
Packages that use 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 aworld
, 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 aworld
, including all players, monsters, projectiles, etc.org.bukkit.event.block org.bukkit.event.enchantment Events
triggered from anenchantment table
.org.bukkit.event.entity org.bukkit.event.hanging Events
relating toentities that hang
.org.bukkit.event.inventory org.bukkit.event.player org.bukkit.event.vehicle Events
relating tovehicular entities
.org.bukkit.inventory Classes involved in manipulating player inventories and item interactions.org.bukkit.projectiles Classes to represent the source of a projectileorg.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 @NotNull Block
Chunk. getBlock(int x, int y, int z)
Gets a block from this chunk@NotNull Block
Location. getBlock()
Gets the block at the represented location@NotNull Block
World. getBlockAt(int x, int y, int z)
Gets theBlock
at the given coordinates@NotNull Block
World. getBlockAt(@NotNull Location location)
@NotNull Block
World. getHighestBlockAt(int x, int z)
Gets the highest non-empty (impassable) block at the given coordinates.@NotNull Block
World. getHighestBlockAt(int x, int z, @NotNull HeightMap heightMap)
Gets the highest block corresponding to theHeightMap
at the given coordinates.@NotNull Block
World. getHighestBlockAt(@NotNull Location location)
Gets the highest non-empty (impassable) block at the given coordinates.@NotNull Block
World. getHighestBlockAt(@NotNull Location location, @NotNull 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 @NotNull Chunk
World. getChunkAt(@NotNull Block block)
-
Uses of Block in org.bukkit.block
Methods in org.bukkit.block that return Block Modifier and Type Method Description @NotNull Block
BlockState. getBlock()
Gets the block represented by this block state.@NotNull Block
Block. getRelative(int modX, int modY, int modZ)
Gets the block at the given offsets@NotNull Block
Block. getRelative(@NotNull BlockFace face)
Gets the block at the given face@NotNull Block
Block. getRelative(@NotNull 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 @Nullable BlockFace
Block. getFace(@NotNull 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 @NotNull 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 @Nullable Block
AbstractArrow. getAttachedBlock()
Gets the block to which this arrow is attached.@Nullable Block
Raider. getPatrolTarget()
Gets the block the raider is targeting to patrol.@NotNull Block
LivingEntity. getTargetBlock(@Nullable Set<Material> transparent, int maxDistance)
Gets the block that the living entity has targeted.@Nullable Block
LivingEntity. getTargetBlockExact(int maxDistance)
Gets the block that the living entity has targeted.@Nullable Block
LivingEntity. getTargetBlockExact(int maxDistance, @NotNull 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 @NotNull List<Block>
LivingEntity. getLastTwoTargetBlocks(@Nullable Set<Material> transparent, int maxDistance)
Gets the last two blocks along the living entity's line of sight.@NotNull List<Block>
LivingEntity. getLineOfSight(@Nullable 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(@Nullable 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 @NotNull Block
BlockEvent. getBlock()
Gets the block involved in this event.@NotNull Block
BlockPlaceEvent. getBlockAgainst()
Gets the block that this block was placed against@NotNull Block
BlockPlaceEvent. getBlockPlaced()
Clarity method for getting the placed block.@Nullable Block
BlockBurnEvent. getIgnitingBlock()
Gets the block which ignited this block.@Nullable Block
BlockIgniteEvent. getIgnitingBlock()
Gets the block which ignited this block@NotNull Block
BlockSpreadEvent. getSource()
Gets the source block involved in this event.@NotNull Block
BlockPhysicsEvent. getSourceBlock()
Gets the source block that triggered this event.@NotNull 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 @NotNull List<Block>
BlockExplodeEvent. blockList()
Returns the list of blocks that would have been removed or were removed from the explosion event.@NotNull List<Block>
BlockPistonExtendEvent. getBlocks()
Get an immutable list of the blocks which will be moved by the extending.@NotNull List<Block>
BlockPistonRetractEvent. getBlocks()
Get an immutable list of the blocks which will be moved by the extending.Constructors in org.bukkit.event.block with parameters of type Block Constructor Description BlockBreakEvent(@NotNull Block theBlock, @NotNull Player player)
BlockBurnEvent(@NotNull Block block)
Deprecated.BlockBurnEvent(@NotNull Block block, @Nullable Block ignitingBlock)
BlockCanBuildEvent(@NotNull Block block, @NotNull BlockData type, boolean canBuild)
Deprecated.BlockCanBuildEvent(@NotNull Block block, @Nullable Player player, @NotNull BlockData type, boolean canBuild)
BlockCookEvent(@NotNull Block block, @NotNull ItemStack source, @NotNull ItemStack result)
BlockDamageEvent(@NotNull Player player, @NotNull Block block, @NotNull ItemStack itemInHand, boolean instaBreak)
BlockDispenseArmorEvent(@NotNull Block block, @NotNull ItemStack dispensed, @NotNull LivingEntity target)
BlockDispenseEvent(@NotNull Block block, @NotNull ItemStack dispensed, @NotNull Vector velocity)
BlockDropItemEvent(@NotNull Block block, @NotNull BlockState blockState, @NotNull Player player, @NotNull List<Item> items)
BlockEvent(@NotNull Block theBlock)
BlockExpEvent(@NotNull Block block, int exp)
BlockExplodeEvent(@NotNull Block what, @NotNull List<Block> blocks, float yield)
BlockFadeEvent(@NotNull Block block, @NotNull BlockState newState)
BlockFertilizeEvent(@NotNull Block theBlock, @Nullable Player player, @NotNull List<BlockState> blocks)
BlockFormEvent(@NotNull Block block, @NotNull BlockState newState)
BlockFromToEvent(@NotNull Block block, @NotNull Block toBlock)
BlockFromToEvent(@NotNull Block block, @NotNull BlockFace face)
BlockGrowEvent(@NotNull Block block, @NotNull BlockState newState)
BlockIgniteEvent(@NotNull Block theBlock, @NotNull BlockIgniteEvent.IgniteCause cause, @NotNull Block ignitingBlock)
BlockIgniteEvent(@NotNull Block theBlock, @NotNull BlockIgniteEvent.IgniteCause cause, @NotNull Entity ignitingEntity)
BlockIgniteEvent(@NotNull Block theBlock, @NotNull BlockIgniteEvent.IgniteCause cause, @Nullable Entity ignitingEntity, @Nullable Block ignitingBlock)
BlockMultiPlaceEvent(@NotNull List<BlockState> states, @NotNull Block clicked, @NotNull ItemStack itemInHand, @NotNull Player thePlayer, boolean canBuild)
BlockPhysicsEvent(@NotNull Block block, @NotNull BlockData changed)
BlockPhysicsEvent(@NotNull Block block, @NotNull BlockData changed, @NotNull Block sourceBlock)
BlockPistonEvent(@NotNull Block block, @NotNull BlockFace direction)
BlockPistonExtendEvent(@NotNull Block block, int length, @NotNull BlockFace direction)
Deprecated.BlockPistonExtendEvent(@NotNull Block block, @NotNull List<Block> blocks, @NotNull BlockFace direction)
BlockPistonRetractEvent(@NotNull Block block, @NotNull List<Block> blocks, @NotNull BlockFace direction)
BlockPlaceEvent(@NotNull Block placedBlock, @NotNull BlockState replacedBlockState, @NotNull Block placedAgainst, @NotNull ItemStack itemInHand, @NotNull Player thePlayer, boolean canBuild)
Deprecated.BlockPlaceEvent(@NotNull Block placedBlock, @NotNull BlockState replacedBlockState, @NotNull Block placedAgainst, @NotNull ItemStack itemInHand, @NotNull Player thePlayer, boolean canBuild, @NotNull EquipmentSlot hand)
BlockRedstoneEvent(@NotNull Block block, int oldCurrent, int newCurrent)
BlockShearEntityEvent(@NotNull Block dispenser, @NotNull Entity sheared, @NotNull ItemStack tool)
BlockSpreadEvent(@NotNull Block block, @NotNull Block source, @NotNull BlockState newState)
CauldronLevelChangeEvent(@NotNull Block block, @Nullable Entity entity, @NotNull CauldronLevelChangeEvent.ChangeReason reason, int oldLevel, int newLevel)
EntityBlockFormEvent(@NotNull Entity entity, @NotNull Block block, @NotNull BlockState blockstate)
FluidLevelChangeEvent(@NotNull Block theBlock, @NotNull BlockData newData)
LeavesDecayEvent(@NotNull Block block)
MoistureChangeEvent(@NotNull Block block, @NotNull BlockState newState)
NotePlayEvent(@NotNull Block block, @NotNull Instrument instrument, @NotNull Note note)
SignChangeEvent(@NotNull Block theBlock, @NotNull Player thePlayer, @NotNull String[] theLines)
SpongeAbsorbEvent(@NotNull Block block, @NotNull List<BlockState> waterblocks)
Constructor parameters in org.bukkit.event.block with type arguments of type Block Constructor Description BlockExplodeEvent(@NotNull Block what, @NotNull List<Block> blocks, float yield)
BlockPistonExtendEvent(@NotNull Block block, @NotNull List<Block> blocks, @NotNull BlockFace direction)
BlockPistonRetractEvent(@NotNull Block block, @NotNull List<Block> blocks, @NotNull BlockFace direction)
-
Uses of Block in org.bukkit.event.enchantment
Methods in org.bukkit.event.enchantment that return Block Modifier and Type Method Description @NotNull Block
EnchantItemEvent. getEnchantBlock()
Gets the block being used to enchant the item@NotNull Block
PrepareItemEnchantEvent. getEnchantBlock()
Gets the block being used to enchant the itemConstructors in org.bukkit.event.enchantment with parameters of type Block Constructor Description EnchantItemEvent(@NotNull Player enchanter, @NotNull InventoryView view, @NotNull Block table, @NotNull ItemStack item, int level, @NotNull Map<Enchantment,Integer> enchants, int i)
PrepareItemEnchantEvent(@NotNull Player enchanter, @NotNull InventoryView view, @NotNull Block table, @NotNull ItemStack item, @NotNull 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 @NotNull Block
EntityChangeBlockEvent. getBlock()
Gets the block the entity is changing@NotNull Block
EntityEnterBlockEvent. getBlock()
Get the block the entity will enter.@NotNull Block
EntityInteractEvent. getBlock()
Returns the involved block@NotNull Block
EntityPlaceEvent. getBlock()
Deprecated.Returns the block that the entity was placed on@Nullable Block
EntityCombustByBlockEvent. getCombuster()
The combuster can be lava or a block that is on fire.@Nullable Block
EntityDamageByBlockEvent. getDamager()
Returns the block that damaged the player.@Nullable 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 @NotNull List<Block>
EntityExplodeEvent. blockList()
Returns the list of blocks that would have been removed or were removed from the explosion event.Constructors in org.bukkit.event.entity with parameters of type Block Constructor Description EntityBreakDoorEvent(@NotNull LivingEntity entity, @NotNull Block targetBlock)
EntityChangeBlockEvent(@NotNull Entity what, @NotNull Block block, @NotNull BlockData to)
EntityCombustByBlockEvent(@Nullable Block combuster, @NotNull Entity combustee, int duration)
EntityDamageByBlockEvent(@Nullable Block damager, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, double damage)
EntityDamageByBlockEvent(@Nullable Block damager, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull Map<EntityDamageEvent.DamageModifier,Double> modifiers, @NotNull Map<EntityDamageEvent.DamageModifier,? extends com.google.common.base.Function<? super Double,Double>> modifierFunctions)
EntityEnterBlockEvent(@NotNull Entity entity, @NotNull Block block)
EntityInteractEvent(@NotNull Entity entity, @NotNull Block block)
EntityPlaceEvent(@NotNull Entity entity, @Nullable Player player, @NotNull Block block, @NotNull BlockFace blockFace)
Deprecated.ProjectileHitEvent(@NotNull Projectile projectile, @Nullable Block hitBlock)
ProjectileHitEvent(@NotNull Projectile projectile, @Nullable Entity hitEntity, @Nullable Block hitBlock)
ProjectileHitEvent(@NotNull Projectile projectile, @Nullable Entity hitEntity, @Nullable Block hitBlock, @Nullable BlockFace hitFace)
Constructor parameters in org.bukkit.event.entity with type arguments of type Block Constructor Description EntityExplodeEvent(@NotNull Entity what, @NotNull Location location, @NotNull 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 @NotNull 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(@NotNull Hanging hanging, @Nullable Player player, @NotNull Block block, @NotNull BlockFace blockFace)
-
Uses of Block in org.bukkit.event.inventory
Constructors in org.bukkit.event.inventory with parameters of type Block Constructor Description BrewEvent(@NotNull Block brewer, @NotNull BrewerInventory contents, int fuelLevel)
BrewingStandFuelEvent(@NotNull Block brewingStand, @NotNull ItemStack fuel, int fuelPower)
FurnaceBurnEvent(@NotNull Block furnace, @NotNull ItemStack fuel, int burnTime)
FurnaceExtractEvent(@NotNull Player player, @NotNull Block block, @NotNull Material itemType, int itemAmount, int exp)
FurnaceSmeltEvent(@NotNull Block furnace, @NotNull ItemStack source, @NotNull 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 @NotNull Block
PlayerBedEnterEvent. getBed()
Returns the bed block involved in this event.@NotNull Block
PlayerBedLeaveEvent. getBed()
Returns the bed block involved in this event.@NotNull Block
PlayerBucketEvent. getBlock()
Gets the block involved in this event.@NotNull Block
PlayerBucketEvent. getBlockClicked()
Return the block clicked@Nullable Block
PlayerInteractEvent. getClickedBlock()
Returns the clicked blockConstructors in org.bukkit.event.player with parameters of type Block Constructor Description PlayerBedEnterEvent(@NotNull Player who, @NotNull Block bed)
Deprecated.PlayerBedEnterEvent(@NotNull Player who, @NotNull Block bed, @NotNull PlayerBedEnterEvent.BedEnterResult bedEnterResult)
PlayerBedLeaveEvent(@NotNull Player who, @NotNull Block bed, boolean setBedSpawn)
PlayerBucketEmptyEvent(@NotNull Player who, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)
Deprecated.PlayerBucketEmptyEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)
PlayerBucketEvent(@NotNull Player who, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)
Deprecated.PlayerBucketEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)
PlayerBucketFillEvent(@NotNull Player who, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)
Deprecated.PlayerBucketFillEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)
PlayerInteractEvent(@NotNull Player who, @NotNull Action action, @Nullable ItemStack item, @Nullable Block clickedBlock, @NotNull BlockFace clickedFace)
PlayerInteractEvent(@NotNull Player who, @NotNull Action action, @Nullable ItemStack item, @Nullable Block clickedBlock, @NotNull BlockFace clickedFace, @Nullable EquipmentSlot hand)
-
Uses of Block in org.bukkit.event.vehicle
Methods in org.bukkit.event.vehicle that return Block Modifier and Type Method Description @NotNull Block
VehicleBlockCollisionEvent. getBlock()
Gets the block the vehicle collided withConstructors in org.bukkit.event.vehicle with parameters of type Block Constructor Description VehicleBlockCollisionEvent(@NotNull Vehicle vehicle, @NotNull Block block)
-
Uses of Block in org.bukkit.inventory
Methods in org.bukkit.inventory that return Block Modifier and Type Method Description @NotNull 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 @NotNull 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 @Nullable Block
RayTraceResult. getHitBlock()
Gets the hit block.@NotNull 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 @NotNull BoundingBox
BoundingBox. of(@NotNull Block block)
Creates a new 1x1x1 sized bounding box containing the given block.static @NotNull BoundingBox
BoundingBox. of(@NotNull Block corner1, @NotNull 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(@NotNull Vector hitPosition, @Nullable Block hitBlock, @Nullable BlockFace hitBlockFace)
Creates a RayTraceResult.
-