程序包 org.bukkit.block

接口 SculkShrieker

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

public interface SculkShrieker extends TileState
Represents a captured state of a sculk shrieker.
  • 方法详细资料

    • getWarningLevel

      int getWarningLevel()
      Gets the most recent warning level of this block. When the warning level reaches 4, the shrieker will attempt to spawn a Warden.
      返回:
      current warning level
    • setWarningLevel

      void setWarningLevel(int level)
      Sets the most recent warning level of this block. When the warning level reaches 4, the shrieker will attempt to spawn a Warden.
      参数:
      level - new warning level
    • tryShriek

      void tryShriek(@Nullable @Nullable Player player)
      Simulates a player causing a vibration.
      参数:
      player - the player that "caused" the shriek