From a414ad97f25b315704c62eee758bb658bcbb36bc Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 28 Jun 2024 07:17:26 +1000 Subject: [PATCH] Fix spawner API documentation By: md_5 --- .../src/main/java/org/bukkit/spawner/BaseSpawner.java | 4 ---- .../src/main/java/org/bukkit/spawner/Spawner.java | 11 +++++++++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/spawner/BaseSpawner.java b/paper-api/src/main/java/org/bukkit/spawner/BaseSpawner.java index a083b9bf6a..553aa2dcca 100644 --- a/paper-api/src/main/java/org/bukkit/spawner/BaseSpawner.java +++ b/paper-api/src/main/java/org/bukkit/spawner/BaseSpawner.java @@ -44,9 +44,6 @@ public interface BaseSpawner { /** * Set the spawner's delay. - *
- * If set to -1, the spawn delay will be reset to a random value between - * {@link #getMinSpawnDelay} and {@link #getMaxSpawnDelay()}. * * @param delay The delay. */ @@ -134,7 +131,6 @@ public interface BaseSpawner { * {@link #addPotentialSpawn} * * @param spawnerEntry the spawner entry to use - * @see #setSpawnedEntity(EntitySnapshot, SpawnRule) */ public void setSpawnedEntity(@NotNull SpawnerEntry spawnerEntry); diff --git a/paper-api/src/main/java/org/bukkit/spawner/Spawner.java b/paper-api/src/main/java/org/bukkit/spawner/Spawner.java index 3dfeecb69f..c595c44698 100644 --- a/paper-api/src/main/java/org/bukkit/spawner/Spawner.java +++ b/paper-api/src/main/java/org/bukkit/spawner/Spawner.java @@ -10,6 +10,17 @@ import org.bukkit.entity.minecart.SpawnerMinecart; */ public interface Spawner extends BaseSpawner { + /** + * {@inheritDoc} + *
+ * If set to -1, the spawn delay will be reset to a random value between + * {@link #getMinSpawnDelay} and {@link #getMaxSpawnDelay()}. + * + * @param delay The delay. + */ + @Override + public void setDelay(int delay); + /** * The minimum spawn delay amount (in ticks). *