类 SculkBloomEvent

所有已实现的接口:
Cancellable

public class SculkBloomEvent extends BlockEvent implements Cancellable
表示当 SculkCatalyst 创建新游标时触发的事件.

游标定义: 此上下文中的游标是 SculkCatalyst 生成的动态标记或指针. 它占据一个方块并在移动时传播幽匿块. 它类似于实体,但不是实体. 游标由方块实体 tick.

游标创建的触发条件:

BlockEvent.getBlock() 的结果是游标生成的位置.
  • 构造器详细资料

  • 方法详细资料

    • getCharge

      public int getCharge()
      返回游标的能量,默认小于 1000. 原文: Returns the charge of the cursor, < 1000 by default.
      返回:
      游标的能量
    • setCharge

      public void setCharge(int charge)
      设置游标的能量.

      增加游标的能量可以使游标持续更长时间,给予它更多时间在更大范围内传播幽匿块.

      通常,能量应设置为生物的经验奖励 (EntityDeathEvent.getDroppedExp()),动物通常为 3-5,普通生物为 5-10(凋灵骷髅最高可达 50). 粗略来说,每增加 1 点能量,将多放置 1 个幽匿块. 原文: Sets the charge of the cursor.

      Increasing the charge of a cursor makes the cursor last longer, giving it more time to spread sculk blocks across a larger range.

      Typically, charges should be set to the exp reward of a mob (EntityDeathEvent.getDroppedExp()), which is usually 3-5 for animals, and 5-10 for the average mob (up to 50 for wither skeletons). Roughly speaking, for each charge, 1 more sculk block will be placed.

      参数:
      charge - 游标的能量
    • isCancelled

      public boolean isCancelled()
      从接口复制的说明: Cancellable
      获取这个事件是否被取消.一个被取消的事件不会在服务器里执行,但是仍然会传递事件到其他插件.

      原文:Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins

      指定者:
      isCancelled 在接口中 Cancellable
      返回:
      如果事件已经被取消,则为true
    • setCancelled

      public void setCancelled(boolean cancel)
      从接口复制的说明: Cancellable
      取消这个事件. 一个被取消的事件不会在 服务器里执行,但是仍然会传递事件到其他插件.

      原文:Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.

      指定者:
      setCancelled 在接口中 Cancellable
      参数:
      cancel - 如果你想取消这个事件,则为true
    • getHandlers

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

      @NotNull public static @NotNull HandlerList getHandlerList()