Configurable sculk sensor listener range

This commit is contained in:
Jake Potrebic 2021-08-19 18:43:16 -07:00
parent 8769e2d5a5
commit 585c6710fd

View File

@ -24,4 +24,19 @@ public interface SculkSensor extends TileState {
* @param lastVibrationFrequency frequency between 0-15.
*/
void setLastVibrationFrequency(int lastVibrationFrequency);
// Paper start
/**
* Gets the range this sensor listens to events at.
*
* @return the range (defaults to 8)
*/
int getListenerRange();
/**
* Sets the range this sensor will listen to events from.
*
* @param range the range (must be greater than 0)
*/
void setListenerRange(int range);
// Paper end
}