程序包 org.bukkit.event.block

# 类 BlockDispenseArmorEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.block.BlockDispenseEvent
org.bukkit.event.block.BlockDispenseArmorEvent

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

public class BlockDispenseArmorEvent extends BlockDispenseEvent
当一个可装备物品从某个方块发射出来并装备到附近的实体上时触发本事件.

如果本事件被取消, 那么装备将不会装备到目标实体上.

- ## 嵌套类概要

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

  `Event.Result`

- ## 字段概要

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

  `block`

- ## 构造器概要

  构造器
  构造器
  说明
  `BlockDispenseArmorEvent(@NotNull Block block, @NotNull ItemStack dispensed, @NotNull LivingEntity target)`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull LivingEntity`
  `getTargetEntity()`
  获取盔甲装备给的目标生物.

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

  `getHandlerList, getHandlers, getItem, getVelocity, isCancelled, setCancelled, setItem, setVelocity`

  ### 从类继承的方法 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`

- ## 构造器详细资料

  - ### BlockDispenseArmorEvent

    public BlockDispenseArmorEvent(@NotNull @NotNull Block block, @NotNull @NotNull ItemStack dispensed, @NotNull @NotNull LivingEntity target)

- ## 方法详细资料

  - ### getTargetEntity

    @NotNull public @NotNull LivingEntity getTargetEntity()
    获取盔甲装备给的目标生物.

    原文:Get the living entity on which the armor was dispensed.

    返回:
      目标实体