Configurable sculk sensor listener range
This commit is contained in:
@@ -24,4 +24,19 @@ public interface SculkSensor extends TileState {
|
|||||||
* @param lastVibrationFrequency frequency between 0-15.
|
* @param lastVibrationFrequency frequency between 0-15.
|
||||||
*/
|
*/
|
||||||
void setLastVibrationFrequency(int lastVibrationFrequency);
|
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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user