Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-15 11:00:06 +01:00
19de9af63c
Functional GUI fix added by billygalbreath
33 Zeilen
1011 B
Diff
33 Zeilen
1011 B
Diff
From d5a5de22dce06c0d7a62b347c1af562ae7d454aa 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 cb447a4a..35a599eb 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.25.0.windows.1
|
|
|