程序包 org.bukkit.event.block

# 类 BlockMultiPlaceEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.block.BlockPlaceEvent
org.bukkit.event.block.BlockMultiPlaceEvent

所有已实现的接口:
  `Cancellable`

public class BlockMultiPlaceEvent extends BlockPlaceEvent
当玩家放一个方块, 而连锁放置了第二个方块时(例如玩家放置一个床)触发本事件.

通过 `BlockPlaceEvent.getBlockPlaced()` 和它的相关方法 返回的方块是:若该位置仅影响一个方块, 则放置的方块将存在的方块.

- ## 嵌套类概要

  ## 从类继承的嵌套类/接口 org.bukkit.event.Event

  `Event.Result`

- ## 字段概要

  ### 从类继承的字段 org.bukkit.event.block.BlockPlaceEvent

  `canBuild, cancel, hand, itemInHand, placedAgainst, player, replacedBlockState`

  ### 从类继承的字段 org.bukkit.event.block.BlockEvent

  `block`

- ## 构造器概要

  构造器
  构造器
  说明
  `BlockMultiPlaceEvent(@NotNull List<BlockState> states, @NotNull Block clicked, @NotNull ItemStack itemInHand, @NotNull Player thePlayer, boolean canBuild)`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull List<BlockState>`
  `getReplacedBlockStates()`
  获取所有被替换的旧方块的方块状态列表.

  ### 从类继承的方法 org.bukkit.event.block.BlockPlaceEvent

  `canBuild, getBlockAgainst, getBlockPlaced, getBlockReplacedState, getHand, getHandlerList, getHandlers, getItemInHand, getPlayer, isCancelled, setBuild, setCancelled`

  ### 从类继承的方法 org.bukkit.event.block.BlockEvent

  `getBlock`

  ### 从类继承的方法 org.bukkit.event.Event

  `getEventName, isAsynchronous`

  ### 从类继承的方法 java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 构造器详细资料

  - ### BlockMultiPlaceEvent

    public BlockMultiPlaceEvent(@NotNull @NotNull List<BlockState> states, @NotNull @NotNull Block clicked, @NotNull @NotNull ItemStack itemInHand, @NotNull @NotNull Player thePlayer, boolean canBuild)

- ## 方法详细资料

  - ### getReplacedBlockStates

    @NotNull public @NotNull List<BlockState> getReplacedBlockStates()
    获取所有被替换的旧方块的方块状态列表.

    这些方块中的大多数方块状态都是空气.

    原文：Gets a list of blockstates for all blocks which were replaced by the placement of the new blocks. Most of these blocks will just have a Material type of AIR.

    返回:
      一个不能改变的BlockStates列表