Package org.bukkit.block
Interface SculkSensor
- All Superinterfaces:
- BlockState,- Metadatable,- PersistentDataHolder,- TileState
- All Known Subinterfaces:
- CalibratedSculkSensor
Represents a captured state of a sculk sensor
- 
Method SummaryModifier and TypeMethodDescriptionintGets the last vibration frequency of this sensor.intGets the range this sensor listens to events at.voidsetLastVibrationFrequency(int lastVibrationFrequency) Sets the last vibration frequency of this sensor.voidsetListenerRange(int range) Sets the range this sensor will listen to events from.Methods inherited from interface org.bukkit.block.BlockStategetBlock, getBlockData, getChunk, getData, getDrops, getDrops, getDrops, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isCollidable, isPlaced, setBlockData, setData, setRawData, setType, update, update, updateMethods inherited from interface org.bukkit.metadata.MetadatablegetMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.block.TileStategetPersistentDataContainer, isSnapshot
- 
Method Details- 
getLastVibrationFrequencyint 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.- Returns:
- frequency between 0-15.
 
- 
setLastVibrationFrequencyvoid 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.- Parameters:
- lastVibrationFrequency- frequency between 0-15.
 
- 
getListenerRangeint getListenerRange()Gets the range this sensor listens to events at.- Returns:
- the range (defaults to 8)
 
- 
setListenerRangevoid setListenerRange(int range) Sets the range this sensor will listen to events from.- Parameters:
- range- the range (must be greater than 0)
 
 
-