程序包 org.bukkit.event.hanging

# 类 HangingBreakByEntityEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.hanging.HangingEvent
org.bukkit.event.hanging.HangingBreakEvent
org.bukkit.event.hanging.HangingBreakByEntityEvent

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

public class HangingBreakByEntityEvent extends HangingBreakEvent
当一个悬挂实体被一个实体移除时调用本事件

- ## 嵌套类概要

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

  `HangingBreakEvent.RemoveCause`

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

  `Event.Result`

- ## 字段概要

  ### 从类继承的字段 org.bukkit.event.hanging.HangingEvent

  `hanging`

- ## 构造器概要

  构造器
  构造器
  说明
  `HangingBreakByEntityEvent(@NotNull Hanging hanging, @Nullable Entity remover)`
  `HangingBreakByEntityEvent(@NotNull Hanging hanging, @Nullable Entity remover, HangingBreakEvent.RemoveCause cause)`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@Nullable Entity`
  `getRemover()`
  获取移除这个悬挂实体的实体.

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

  `getCause, getHandlerList, getHandlers, isCancelled, setCancelled`

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

  `getEntity`

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

  `getEventName, isAsynchronous`

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

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

- ## 构造器详细资料

  - ### HangingBreakByEntityEvent

    public HangingBreakByEntityEvent(@NotNull @NotNull Hanging hanging, @Nullable @Nullable Entity remover)

  - ### HangingBreakByEntityEvent

    public HangingBreakByEntityEvent(@NotNull @NotNull Hanging hanging, @Nullable @Nullable Entity remover, @NotNull HangingBreakEvent.RemoveCause cause)

- ## 方法详细资料

  - ### getRemover

    @Nullable public @Nullable Entity getRemover()
    获取移除这个悬挂实体的实体. 可能为null, 比如当此实体被爆炸破坏时.

    原文:Gets the entity that removed the hanging entity. May be null, for example when broken by an explosion.

    返回:
      移除这个悬挂实体的实体