# 接口的使用
org.bukkit.block.Block

使用Block的程序包
程序包
说明
org.bukkit
Bukkit API的顶级程序包, 包含通用的API类和接口.
org.bukkit.block
用于操作在`世界`内的三位像素(方块)，包括一些特定的状态.
org.bukkit.block.data
各种方块的 BlockData 类.
org.bukkit.command
与处理玩家输入的非聊天消息(即命令)相关的类.
org.bukkit.entity
为在`世界`内存在的非三维像素单位(实体)提供的接口，包含玩家、怪物、抛射物等.
org.bukkit.event.block
与`方块`被改变或与`世界`进行交互等情况相关的`事件`.
org.bukkit.event.enchantment
与`附魔台`操作相关的`事件`.
org.bukkit.event.entity
与`实体`相关的`事件`，不包括 一些直接引用的更具体的实体类型.
org.bukkit.event.hanging
与`悬挂实体`相关的`事件`.
org.bukkit.event.inventory
与`物品栏`操作相关的`事件`.
org.bukkit.event.player
与`玩家`相关的`事件`.
org.bukkit.event.vehicle
与`载具实体`相关的`事件`.
org.bukkit.inventory
参与操作玩家物品栏和物品交互的类.
org.bukkit.projectiles
代表一个抛射物的抛射源的类的集合.
org.bukkit.util
提供多种目的和单一目的的类以简化各种编程概念.

- ## org.bukkit中Block的使用

  返回Block的org.bukkit中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Block`
  Chunk.`getBlock(int x, int y, int z)`
  从区块中获取某个方块(`Block`).
  `@NotNull Block`
  Location.`getBlock()`
  获取本位置对应的方块.
  `@NotNull Block`
  Vibration.Destination.BlockDestination.`getBlock()`
  `@NotNull Block`
  World.`getBlockAt(int x, int y, int z)`
  获取坐标所指的`方块`.
  `@NotNull Block`
  World.`getBlockAt(@NotNull Location location)`
  获取指定`位置`的`方块`.
  `@NotNull Block`
  World.`getHighestBlockAt(int x, int z)`
  获取指定坐标最高处不是空气且不可逾越的方块.
  `@NotNull Block`
  World.`getHighestBlockAt(int x, int z, @NotNull HeightMap heightMap)`
  Gets the highest block corresponding to the `HeightMap` at the given coordinates.
  `@NotNull Block`
  World.`getHighestBlockAt(@NotNull Location location)`
  获取指定`位置`最高处不是空气且不可逾越的方块.
  `@NotNull Block`
  World.`getHighestBlockAt(@NotNull Location location, @NotNull HeightMap heightMap)`
  Gets the highest block corresponding to the `HeightMap` at the given coordinates.
  参数类型为Block的org.bukkit中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Chunk`
  World.`getChunkAt(@NotNull Block block)`
  获取这个`方块`所处的`区块`.
  参数类型为Block的org.bukkit中的构造器
  限定符
  构造器
  说明
  ``
  `BlockDestination(@NotNull Block block)`

- ## org.bukkit.block中Block的使用

  返回Block的org.bukkit.block中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Block`
  BlockState.`getBlock()`
  获取此方块状态所表示的方块.
  `@NotNull Block`
  Block.`getRelative(int modX, int modY, int modZ)`
  以此方块为基点, 在指定的偏移量上获取方块.
  `@NotNull Block`
  Block.`getRelative(@NotNull BlockFace face)`
  获取这个方块某一面上紧邻的方块.
  `@NotNull Block`
  Block.`getRelative(@NotNull BlockFace face, int distance)`
  获取这个方块某一面上指定距离的方块.
  返回变量类型为Block的类型的org.bukkit.block中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Collection<Block>`
  Conduit.`getFrameBlocks()`
  Get a `Collection` of all `Blocks` that make up the frame of this conduit.
  参数类型为Block的org.bukkit.block中的方法
  修饰符和类型
  方法
  说明
  `void`
  SculkCatalyst.`bloom(@NotNull Block block, int charges)`
  Causes a new sculk bloom, as if an entity just died around this catalyst.
  `@Nullable BlockFace`
  Block.`getFace(@NotNull Block block)`
  获取本方块的哪一面朝向给定的方块.

- ## org.bukkit.block.data中Block的使用

  参数类型为Block的org.bukkit.block.data中的方法
  修饰符和类型
  方法
  说明
  `boolean`
  BlockData.`isSupported(@NotNull Block block)`
  检查如果此状态下的方块放置在给定的`方块`上，它是否会被正常支撑。

- ## org.bukkit.command中Block的使用

  返回Block的org.bukkit.command中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Block`
  BlockCommandSender.`getBlock()`
  返回命令发送者的方块.

- ## org.bukkit.entity中Block的使用

  返回Block的org.bukkit.entity中的方法
  修饰符和类型
  方法
  说明
  `@Nullable Block`
  AbstractArrow.`getAttachedBlock()`
  获得这支箭连接的方块.
  `@Nullable Block`
  Raider.`getPatrolTarget()`
  获取袭击者要巡逻的目标方块.
  `@NotNull Block`
  LivingEntity.`getTargetBlock(@Nullable Set<Material> transparent, int maxDistance)`
  获取生物实体的目标方块.
  `@Nullable Block`
  LivingEntity.`getTargetBlockExact(int maxDistance)`
  获取该生物实体瞄准的方块。
  `@Nullable Block`
  LivingEntity.`getTargetBlockExact(int maxDistance, @NotNull FluidCollisionMode fluidCollisionMode)`
  获取该生物实体瞄准的方块。
  返回变量类型为Block的类型的org.bukkit.entity中的方法
  修饰符和类型
  方法
  说明
  `@NotNull List<Block>`
  LivingEntity.`getLastTwoTargetBlocks(@Nullable Set<Material> transparent, int maxDistance)`
  获取沿生物实体视线上最后两个方块.
  `@NotNull List<Block>`
  LivingEntity.`getLineOfSight(@Nullable Set<Material> transparent, int maxDistance)`
  获取沿生物实体视线上的所有方块.
  参数类型为Block的org.bukkit.entity中的方法
  修饰符和类型
  方法
  说明
  `boolean`
  Player.`breakBlock(@NotNull Block block)`
  Force this player to break a Block using the item in their main hand.
  `void`
  Raider.`setPatrolTarget(@Nullable Block block)`
  设置袭击者要巡逻的目标方块.

- ## org.bukkit.event.block中Block的使用

  声明为Block的org.bukkit.event.block中的字段
  修饰符和类型
  字段
  说明
  `protected Block`
  BlockEvent.`block`
  `protected Block`
  BlockPlaceEvent.`placedAgainst`
  `protected Block`
  BlockFromToEvent.`to`
  返回Block的org.bukkit.event.block中的方法
  修饰符和类型
  方法
  说明
  `final @NotNull Block`
  BlockEvent.`getBlock()`
  获取这个事件涉及的方块.
  `@NotNull Block`
  BlockPlaceEvent.`getBlockAgainst()`
  获取这个方块是依附在哪个方块上放置的.
  `@NotNull Block`
  BlockPlaceEvent.`getBlockPlaced()`
  获得被放置的方块(还未真正被放置).
  `@Nullable Block`
  BlockBurnEvent.`getIgnitingBlock()`
  获取点燃这个方块的方块.
  `@Nullable Block`
  BlockIgniteEvent.`getIgnitingBlock()`
  获取点燃方块的方块.
  `@Nullable Block`
  TNTPrimeEvent.`getPrimingBlock()`
  Get the block that caused the TNT to be primed.
  `@NotNull Block`
  BlockSpreadEvent.`getSource()`
  获取这个事件中蔓延的源方块.
  `@NotNull Block`
  BlockPhysicsEvent.`getSourceBlock()`
  获取触发本事件的源方块.
  `@NotNull Block`
  BlockFromToEvent.`getToBlock()`
  获取方块要移动到的地方的一个快捷的方法.
  返回变量类型为Block的类型的org.bukkit.event.block中的方法
  修饰符和类型
  方法
  说明
  `@NotNull List<Block>`
  BlockExplodeEvent.`blockList()`
  返回被炸毁的方块的列表.
  `@NotNull List<Block>`
  BlockPistonExtendEvent.`getBlocks()`
  获取被活塞移动的不可改变的方块列表.
  `@NotNull List<Block>`
  BlockPistonRetractEvent.`getBlocks()`
  获取被活塞移动的不可改变的方块列表.
  参数类型为Block的org.bukkit.event.block中的构造器
  限定符
  构造器
  说明
  ``
  `BellResonateEvent(@NotNull Block theBlock, @NotNull List<LivingEntity> resonatedEntities)`
  ``
  `BellRingEvent(@NotNull Block theBlock, @NotNull BlockFace direction, @Nullable Entity entity)`
  ``
  `BlockBreakEvent(@NotNull Block theBlock, @NotNull Player player)`
  ``
  `BlockBurnEvent(@NotNull Block block)`
  已过时。
  ``
  `BlockBurnEvent(@NotNull Block block, @Nullable Block ignitingBlock)`
  ``
  `BlockCanBuildEvent(@NotNull Block block, @NotNull BlockData type, boolean canBuild)`
  已过时。
  ``
  `BlockCanBuildEvent(@NotNull Block block, @Nullable Player player, @NotNull BlockData type, boolean canBuild)`
  ``
  `BlockCookEvent(@NotNull Block block, @NotNull ItemStack source, @NotNull ItemStack result)`
  ``
  `BlockDamageAbortEvent(@NotNull Player player, @NotNull Block block, @NotNull ItemStack itemInHand)`
  ``
  `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 BlockState blockState, @NotNull List<Block> blocks, float yield, @NotNull ExplosionResult result)`
  ``
  `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, @Nullable 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)`
  已过时。
  ``
  `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)`
  已过时。
  ``
  `BlockPlaceEvent(@NotNull Block placedBlock, @NotNull BlockState replacedBlockState, @NotNull Block placedAgainst, @NotNull ItemStack itemInHand, @NotNull Player thePlayer, boolean canBuild, @NotNull EquipmentSlot hand)`
  ``
  `BlockReceiveGameEvent(@NotNull GameEvent event, @NotNull Block block, @Nullable Entity entity)`
  ``
  `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)`
  ``
  `BrewingStartEvent(@NotNull Block furnace, @NotNull ItemStack source, int brewingTime)`
  ``
  `CampfireStartEvent(@NotNull Block furnace, @NotNull ItemStack source, @NotNull CampfireRecipe recipe)`
  ``
  `CauldronLevelChangeEvent(@NotNull Block block, @Nullable Entity entity, @NotNull CauldronLevelChangeEvent.ChangeReason reason, @NotNull BlockState newBlock)`
  ``
  `EntityBlockFormEvent(@NotNull Entity entity, @NotNull Block block, @NotNull BlockState blockstate)`
  ``
  `FluidLevelChangeEvent(@NotNull Block theBlock, @NotNull BlockData newData)`
  ``
  `InventoryBlockStartEvent(@NotNull Block block, @NotNull ItemStack source)`
  ``
  `LeavesDecayEvent(@NotNull Block block)`
  ``
  `MoistureChangeEvent(@NotNull Block block, @NotNull BlockState newState)`
  ``
  `NotePlayEvent(@NotNull Block block, @NotNull Instrument instrument, @NotNull Note note)`
  ``
  `SculkBloomEvent(@NotNull Block theBlock, int charge)`
  ``
  `SignChangeEvent(@NotNull Block theBlock, @NotNull Player thePlayer, @NotNull String[] theLines)`
  已过时。
  ``
  `SignChangeEvent(@NotNull Block theBlock, @NotNull Player thePlayer, @NotNull String[] theLines, @NotNull Side side)`
  ``
  `SpongeAbsorbEvent(@NotNull Block block, @NotNull List<BlockState> waterblocks)`
  ``
  `TNTPrimeEvent(@NotNull Block block, @NotNull TNTPrimeEvent.PrimeCause igniteCause, @Nullable Entity primingEntity, @Nullable Block primingBlock)`
  类型变量类型为Block的org.bukkit.event.block中的构造器参数
  限定符
  构造器
  说明
  ``
  `BlockExplodeEvent(@NotNull Block what, @NotNull BlockState blockState, @NotNull List<Block> blocks, float yield, @NotNull ExplosionResult result)`
  ``
  `BlockPistonExtendEvent(@NotNull Block block, @NotNull List<Block> blocks, @NotNull BlockFace direction)`
  ``
  `BlockPistonRetractEvent(@NotNull Block block, @NotNull List<Block> blocks, @NotNull BlockFace direction)`

- ## org.bukkit.event.enchantment中Block的使用

  返回Block的org.bukkit.event.enchantment中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Block`
  EnchantItemEvent.`getEnchantBlock()`
  获取附魔这个物品的方块。
  `@NotNull Block`
  PrepareItemEnchantEvent.`getEnchantBlock()`
  获取附魔台方块.
  参数类型为Block的org.bukkit.event.enchantment中的构造器
  限定符
  构造器
  说明
  ``
  `EnchantItemEvent(@NotNull Player enchanter, @NotNull InventoryView view, @NotNull Block table, @NotNull ItemStack item, int level, @NotNull Map<Enchantment,Integer> enchants, @NotNull Enchantment enchantmentHint, int levelHint, int i)`
  ``
  `PrepareItemEnchantEvent(@NotNull Player enchanter, @NotNull InventoryView view, @NotNull Block table, @NotNull ItemStack item, @NotNull EnchantmentOffer[] offers, int bonus)`

- ## org.bukkit.event.entity中Block的使用

  声明为Block的org.bukkit.event.entity中的字段
  修饰符和类型
  字段
  说明
  `protected Block`
  EntityInteractEvent.`block`
  返回Block的org.bukkit.event.entity中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Block`
  EntityChangeBlockEvent.`getBlock()`
  返回改变之前的方块(Block)类 原文: Gets the block the entity is changing
  `@NotNull Block`
  EntityEnterBlockEvent.`getBlock()`
  获取实体将进入的方块.
  `@NotNull Block`
  EntityInteractEvent.`getBlock()`
  返回实体交互的方块
  `@NotNull Block`
  EntityPlaceEvent.`getBlock()`
  返回实体被放置在的方块.
  `@Nullable Block`
  EntityCombustByBlockEvent.`getCombuster()`
  造成燃烧的可以是岩浆或者一个着火的方块.
  `@Nullable Block`
  EntityDamageByBlockEvent.`getDamager()`
  返回使玩家受到伤害的方块.
  `@Nullable Block`
  ProjectileHitEvent.`getHitBlock()`
  Gets the block that was hit, if it was a block that was hit.
  返回变量类型为Block的类型的org.bukkit.event.entity中的方法
  修饰符和类型
  方法
  说明
  `@NotNull List<Block>`
  EntityExplodeEvent.`blockList()`
  返回被将移除或已被这次爆炸移除的方块列表.
  参数类型为Block的org.bukkit.event.entity中的构造器
  限定符
  构造器
  说明
  ``
  `EntityBreakDoorEvent(@NotNull LivingEntity entity, @NotNull Block targetBlock)`
  ``
  `EntityChangeBlockEvent(@NotNull Entity what, @NotNull Block block, @NotNull BlockData to)`
  ``
  `EntityCombustByBlockEvent(@Nullable Block combuster, @NotNull Entity combustee, float duration)`
  ``
  `EntityCombustByBlockEvent(@Nullable Block combuster, @NotNull Entity combustee, int duration)`
  已过时。
  ``
  `EntityDamageByBlockEvent(@Nullable Block damager, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, double damage)`
  已过时, 待删除: 此 API 元素将从以后的版本中删除。
  ``
  `EntityDamageByBlockEvent(@Nullable Block damager, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull Map<EntityDamageEvent.DamageModifier,Double> modifiers, @NotNull Map<EntityDamageEvent.DamageModifier,? extends Function<? super Double,Double>> modifierFunctions)`
  已过时, 待删除: 此 API 元素将从以后的版本中删除。
  ``
  `EntityDamageByBlockEvent(@Nullable Block damager, @Nullable BlockState damagerState, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull DamageSource damageSource, double damage)`
  ``
  `EntityDamageByBlockEvent(@Nullable Block damager, @Nullable BlockState damagerState, @NotNull Entity damagee, @NotNull EntityDamageEvent.DamageCause cause, @NotNull DamageSource damageSource, @NotNull Map<EntityDamageEvent.DamageModifier,Double> modifiers, @NotNull Map<EntityDamageEvent.DamageModifier,? extends 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)`
  已过时。
  ``
  `EntityPlaceEvent(@NotNull Entity entity, @Nullable Player player, @NotNull Block block, @NotNull BlockFace blockFace, @NotNull EquipmentSlot hand)`
  ``
  `ExpBottleEvent(@NotNull ThrownExpBottle bottle, @Nullable Entity hitEntity, @Nullable Block hitBlock, @Nullable BlockFace hitFace, int exp)`
  ``
  `LingeringPotionSplashEvent(@NotNull ThrownPotion potion, @Nullable Entity hitEntity, @Nullable Block hitBlock, @Nullable BlockFace hitFace, @NotNull AreaEffectCloud entity)`
  ``
  `PotionSplashEvent(@NotNull ThrownPotion potion, @Nullable Entity hitEntity, @Nullable Block hitBlock, @Nullable BlockFace hitFace, @NotNull Map<LivingEntity,Double> affectedEntities)`
  ``
  `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)`
  类型变量类型为Block的org.bukkit.event.entity中的构造器参数
  限定符
  构造器
  说明
  ``
  `EntityExplodeEvent(@NotNull Entity what, @NotNull Location location, @NotNull List<Block> blocks, float yield, @NotNull ExplosionResult result)`

- ## org.bukkit.event.hanging中Block的使用

  返回Block的org.bukkit.event.hanging中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Block`
  HangingPlaceEvent.`getBlock()`
  返回这个悬挂实体被放置在哪个方块上.
  参数类型为Block的org.bukkit.event.hanging中的构造器
  限定符
  构造器
  说明
  ``
  `HangingPlaceEvent(@NotNull Hanging hanging, @Nullable Player player, @NotNull Block block, @NotNull BlockFace blockFace, @Nullable EquipmentSlot hand)`
  已过时。
  ``
  `HangingPlaceEvent(@NotNull Hanging hanging, @Nullable Player player, @NotNull Block block, @NotNull BlockFace blockFace, @Nullable EquipmentSlot hand, @Nullable ItemStack itemStack)`

- ## org.bukkit.event.inventory中Block的使用

  返回Block的org.bukkit.event.inventory中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Block`
  HopperInventorySearchEvent.`getSearchBlock()`
  Gets the Block that is being searched for an inventory.
  参数类型为Block的org.bukkit.event.inventory中的构造器
  限定符
  构造器
  说明
  ``
  `BrewEvent(@NotNull Block brewer, @NotNull BrewerInventory contents, @NotNull List<ItemStack> results, 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)`
  ``
  `FurnaceStartSmeltEvent(@NotNull Block furnace, @NotNull ItemStack source, @NotNull CookingRecipe<?> recipe)`
  ``
  `HopperInventorySearchEvent(@NotNull Inventory inventory, @NotNull HopperInventorySearchEvent.ContainerType containerType, @NotNull Block hopper, @NotNull Block searchBlock)`

- ## org.bukkit.event.player中Block的使用

  声明为Block的org.bukkit.event.player中的字段
  修饰符和类型
  字段
  说明
  `protected Block`
  PlayerInteractEvent.`blockClicked`
  返回Block的org.bukkit.event.player中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Block`
  PlayerBedEnterEvent.`getBed()`
  返回此事件涉及的床.
  `@NotNull Block`
  PlayerBedLeaveEvent.`getBed()`
  返回此事件涉及的床.
  `final @NotNull Block`
  PlayerBucketEvent.`getBlock()`
  获取本事件所涉及的方块 (岩浆/水方块等).
  `@NotNull Block`
  PlayerBucketEvent.`getBlockClicked()`
  玩家正在对着哪个方块使用桶,返回那个方块.
  `@Nullable Block`
  PlayerInteractEvent.`getClickedBlock()`
  返回被点击的方块.
  `@NotNull Block`
  PlayerHarvestBlockEvent.`getHarvestedBlock()`
  获取被收获的方块。
  参数类型为Block的org.bukkit.event.player中的构造器
  限定符
  构造器
  说明
  ``
  `PlayerBedEnterEvent(@NotNull Player who, @NotNull Block bed)`
  已过时。
  ``
  `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)`
  已过时。
  ``
  `PlayerBucketEmptyEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)`
  已过时。
  ``
  `PlayerBucketEmptyEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand, @NotNull EquipmentSlot hand)`
  ``
  `PlayerBucketEvent(@NotNull Player who, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)`
  已过时。
  ``
  `PlayerBucketEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)`
  已过时。
  ``
  `PlayerBucketEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand, @NotNull EquipmentSlot hand)`
  ``
  `PlayerBucketFillEvent(@NotNull Player who, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)`
  已过时。
  ``
  `PlayerBucketFillEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)`
  已过时。
  ``
  `PlayerBucketFillEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand, @NotNull EquipmentSlot hand)`
  ``
  `PlayerHarvestBlockEvent(@NotNull Player player, @NotNull Block harvestedBlock, @NotNull List<ItemStack> itemsHarvested)`
  已过时。
  ``
  `PlayerHarvestBlockEvent(@NotNull Player player, @NotNull Block harvestedBlock, @NotNull EquipmentSlot hand, @NotNull List<ItemStack> itemsHarvested)`
  ``
  `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)`
  ``
  `PlayerInteractEvent(@NotNull Player who, @NotNull Action action, @Nullable ItemStack item, @Nullable Block clickedBlock, @NotNull BlockFace clickedFace, @Nullable EquipmentSlot hand, @Nullable Vector clickedPosition)`

- ## org.bukkit.event.vehicle中Block的使用

  返回Block的org.bukkit.event.vehicle中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Block`
  VehicleBlockCollisionEvent.`getBlock()`
  获取载具撞到的方块.
  参数类型为Block的org.bukkit.event.vehicle中的构造器
  限定符
  构造器
  说明
  ``
  `VehicleBlockCollisionEvent(@NotNull Vehicle vehicle, @NotNull Block block)`

- ## org.bukkit.inventory中Block的使用

  返回Block的org.bukkit.inventory中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Block`
  BlockInventoryHolder.`getBlock()`
  Gets the block associated with this holder.

- ## org.bukkit.projectiles中Block的使用

  返回Block的org.bukkit.projectiles中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Block`
  BlockProjectileSource.`getBlock()`
  获取这个抛射物所属的方块。

- ## org.bukkit.util中Block的使用

  返回Block的org.bukkit.util中的方法
  修饰符和类型
  方法
  说明
  `@Nullable Block`
  RayTraceResult.`getHitBlock()`
  获取命中的方块.
  `@NotNull Block`
  BlockIterator.`next()`
  返回追踪的下一个方块.
  参数类型为Block的org.bukkit.util中的方法
  修饰符和类型
  方法
  说明
  `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.
  参数类型为Block的org.bukkit.util中的构造器
  限定符
  构造器
  说明
  ``
  `RayTraceResult(@NotNull Vector hitPosition, @Nullable Block hitBlock, @Nullable BlockFace hitBlockFace)`
  创建一个射线跟踪器结果.