mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 04:55:47 +01:00
57dd397155
Upstream has released updates that appears to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Bukkit Changes: b999860d SPIGOT-2304: Add LootGenerateEvent CraftBukkit Changes:77fd87e4
SPIGOT-2304: Implement LootGenerateEventa1a705ee
SPIGOT-5566: Doused campfires & fires should call EntityChangeBlockEvent41712edd
SPIGOT-5707: PersistentDataHolder not Persistent on API dropped Item
33 lines
1003 B
Diff
33 lines
1003 B
Diff
From 92e558aeeadc89ede03efc1ea18d6b93edac1673 Mon Sep 17 00:00:00 2001
|
|
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
|
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 cb447a4ad..35a599ebe 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 {
|
|
* @see #getSpawnRange()
|
|
*/
|
|
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.26.2
|
|
|