程序包 org.bukkit.block

接口 SculkCatalyst

所有超级接口:
BlockState, Metadatable, PersistentDataHolder, TileState

public interface SculkCatalyst extends TileState
代表幽匿催发体的捕获状态.
  • 方法详细资料

    • bloom

      void bloom(@NotNull @NotNull Block block, int charges)
      导致一次新的幽匿蔓延, 就好像有实体刚在这个催发体周围死亡一样.

      通常, 能量值应该设置为生物的经验奖励值 (EntityDeathEvent.getDroppedExp()), 动物通常是 3-5, 普通生物是5-10(凋灵骷髅最高可达50). 粗略来说, 每点能量值会多放置一个幽匿方块.

      如果 charges > 1000, 将在方块中生成多个游标.

      原文:Causes a new sculk bloom, as if an entity just died around this catalyst.

      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.

      If charges > 1000, multiple cursors will be spawned in the block.

      参数:
      block - 在哪个方块中生成游标
      charges - 要生成多少能量值