From 4f177edca5e5517d383f03df45effcf104dd02a0 Mon Sep 17 00:00:00 2001 From: William Blake Galbreath Date: Fri, 19 Apr 2019 12:41:19 -0500 Subject: [PATCH] Mob Spawner API Enhancements diff --git a/src/main/java/org/bukkit/block/CreatureSpawner.java b/src/main/java/org/bukkit/block/CreatureSpawner.java index e73fb0ef0..2ff0f24d5 100644 --- a/src/main/java/org/bukkit/block/CreatureSpawner.java +++ b/src/main/java/org/bukkit/block/CreatureSpawner.java @@ -199,4 +199,18 @@ public interface CreatureSpawner extends TileState { * @param spawnRange the new spawn range */ public void setSpawnRange(int spawnRange); + + // Paper start + /** + * Check if spawner is activated (a player is close enough) + * + * @return True if a player is close enough to activate it + */ + public boolean isActivated(); + + /** + * Resets the spawn delay timer within the min/max range + */ + public void resetTimer(); + // Paper end } -- 2.21.0