类 BellResonateEvent


public class BellResonateEvent extends BlockEvent
当钟被敲响后共鸣并高亮附近袭击者时触发. 只有当袭击者在钟附近时钟才会共鸣.
  • 构造器详细资料

  • 方法详细资料

    • getResonatedEntities

      @NotNull public @NotNull List<LivingEntity> getResonatedEntities()
      获取一个可变列表,包含所有将被钟共鸣高亮的 LivingEntities. 可以通过添加或移除实体来改变被高亮的实体列表,如果此事件没有共鸣任何实体,则可能为空.

      虽然被高亮的实体会改变,但共鸣实体上方显示的粒子及其颜色不会改变. 这由客户端处理,服务器无法控制. 原文: Get a mutable list of all LivingEntities to be highlighted by the bell's resonating. This list can be added to or removed from to change which entities are highlighted, and may be empty if no entities were resonated as a result of this event.

      While the highlighted entities will change, the particles that display over a resonated entity and their colors will not. This is handled by the client and cannot be controlled by the server.

      返回:
      共鸣的实体列表
    • getHandlers

      @NotNull public @NotNull HandlerList getHandlers()
      指定者:
      getHandlers 在类中 Event
    • getHandlerList

      @NotNull public static @NotNull HandlerList getHandlerList()