Interface SculkSensor
- All Superinterfaces:
BlockState, Metadatable, PersistentDataHolder, TileState
- All Known Subinterfaces:
CalibratedSculkSensor
Represents a captured state of a sculk sensor
-
Method Summary
Modifier and TypeMethodDescriptionintGets the last vibration frequency of this sensor.voidsetLastVibrationFrequency(int lastVibrationFrequency) Sets the last vibration frequency of this sensor.Methods inherited from interface BlockState
copy, copy, getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update, updateMethods inherited from interface Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface TileState
getPersistentDataContainer
-
Method Details
-
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.- Returns:
- 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.- Parameters:
lastVibrationFrequency- frequency between 0-15.
-