程序包 org.bukkit.block

接口 SculkShrieker

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

public interface SculkShrieker extends TileState
代表幽匿尖啸体的捕获状态.
  • 方法详细资料

    • getWarningLevel

      int getWarningLevel()
      获取此方块的最新警告等级.

      当警告等级达到4时, 尖啸体将尝试生成一个 监守者.

      原文:Gets the most recent warning level of this block. When the warning level reaches 4, the shrieker will attempt to spawn a Warden.

      返回:
      当前警告等级
    • setWarningLevel

      void setWarningLevel(int level)
      设置此方块的最新警告等级.

      当警告等级达到4时, 尖啸体将尝试生成一个 监守者.

      原文:Sets the most recent warning level of this block. When the warning level reaches 4, the shrieker will attempt to spawn a Warden.

      参数:
      level - 新警告等级
    • tryShriek

      void tryShriek(@Nullable @Nullable Player player)
      模拟玩家引起振动.

      原文:Simulates a player causing a vibration.

      参数:
      player - "引起"尖啸的玩家