程序包 org.bukkit.block

接口 SculkSensor

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

public interface SculkSensor extends TileState
代表幽匿感测体的捕获状态.
  • 方法详细资料

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

      返回:
      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 - 0-15之间的频率值