From 585c6710fde6df4b7e100fb8b31d3ab655adb713 Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Thu, 19 Aug 2021 18:43:16 -0700 Subject: [PATCH] Configurable sculk sensor listener range --- .../main/java/org/bukkit/block/SculkSensor.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/block/SculkSensor.java b/paper-api/src/main/java/org/bukkit/block/SculkSensor.java index 1896611782..95a8226130 100644 --- a/paper-api/src/main/java/org/bukkit/block/SculkSensor.java +++ b/paper-api/src/main/java/org/bukkit/block/SculkSensor.java @@ -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 }