mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 11:27:35 +01:00
Configurable sculk sensor listener range
This commit is contained in:
parent
8769e2d5a5
commit
585c6710fd
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user