程序包 org.bukkit.block

接口 SculkSensor

所有超级接口:
BlockState, Metadatable, PersistentDataHolder, TileState
所有已知子接口:
CalibratedSculkSensor

public interface SculkSensor extends TileState
Represents a captured state of a sculk sensor
  • 方法详细资料

    • 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.