程序包 org.bukkit.block
接口 SculkSensor
- 所有超级接口:
BlockState,Metadatable,PersistentDataHolder,TileState
- 所有已知子接口:
CalibratedSculkSensor
代表幽匿感测体的捕获状态.
-
方法概要
修饰符和类型方法说明int获取此感测体的最后振动频率.voidsetLastVibrationFrequency(int lastVibrationFrequency) 设置此感测体的最后振动频率.从接口继承的方法 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.
- 返回:
- 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之间的频率值
-