程序包 org.bukkit.block

# 接口 SculkShrieker

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

public interface SculkShrieker extends TileState
Represents a captured state of a sculk shrieker.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `int`
  `getWarningLevel()`
  Gets the most recent warning level of this block.
  `void`
  `setWarningLevel(int level)`
  Sets the most recent warning level of this block.
  `void`
  `tryShriek(@Nullable Player player)`
  Simulates a player causing a vibration.

  ### 从接口继承的方法 org.bukkit.block.BlockState

  `copy, copy, getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update, update`

  ### 从接口继承的方法 org.bukkit.metadata.Metadatable

  `getMetadata, hasMetadata, removeMetadata, setMetadata`

  ### 从接口继承的方法 org.bukkit.block.TileState

  `getPersistentDataContainer`

- ## 方法详细资料

  - ### 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