程序包 org.bukkit.block

# 接口 SculkSensor

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

所有已知子接口:
  `CalibratedSculkSensor`

public interface SculkSensor extends TileState
Represents a captured state of a sculk sensor

- ## 方法概要

  修饰符和类型
  方法
  说明
  `int`
  `getLastVibrationFrequency()`
  Gets the last vibration frequency of this sensor.
  `void`
  `setLastVibrationFrequency(int lastVibrationFrequency)`
  Sets the last vibration frequency of this sensor.

  ### 从接口继承的方法 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`

- ## 方法详细资料

  - ### getLastVibrationFrequency

    int getLastVibrationFrequency()
    Gets the last vibration frequency of this sensor. Different activities detected by the sensor will produce different frequencies and dictate the output of connected comparators.
    返回:
      frequency between 0-15.

  - ### setLastVibrationFrequency

    void setLastVibrationFrequency(int lastVibrationFrequency)
    Sets the last vibration frequency of this sensor. Different activities detected by the sensor will produce different frequencies and dictate the output of connected comparators.
    参数:
      `lastVibrationFrequency` - frequency between 0-15.