Commits

md_5 authored 9738f00514c
Fix spawner API documentation
No tags

src/main/java/org/bukkit/spawner/BaseSpawner.java

Modified
37 37 * Get the spawner's delay.
38 38 * <br>
39 39 * This is the delay, in ticks, until the spawner will spawn its next mob.
40 40 *
41 41 * @return The delay.
42 42 */
43 43 public int getDelay();
44 44
45 45 /**
46 46 * Set the spawner's delay.
47 - * <br>
48 - * If set to -1, the spawn delay will be reset to a random value between
49 - * {@link #getMinSpawnDelay} and {@link #getMaxSpawnDelay()}.
50 47 *
51 48 * @param delay The delay.
52 49 */
53 50 public void setDelay(int delay);
54 51
55 52 /**
56 53 * Get the maximum distance(squared) a player can be in order for this
57 54 * spawner to be active.
58 55 * <br>
59 56 * If this value is less than or equal to 0, this spawner is always active
127 124 * @param snapshot the entity snapshot or null to clear
128 125 */
129 126 public void setSpawnedEntity(@Nullable EntitySnapshot snapshot);
130 127
131 128 /**
132 129 * Sets the {@link SpawnerEntry} that will be spawned by this spawner. <br>
133 130 * This will override any previous entries that have been added with
134 131 * {@link #addPotentialSpawn}
135 132 *
136 133 * @param spawnerEntry the spawner entry to use
137 - * @see #setSpawnedEntity(EntitySnapshot, SpawnRule)
138 134 */
139 135 public void setSpawnedEntity(@NotNull SpawnerEntry spawnerEntry);
140 136
141 137 /**
142 138 * Adds a new {@link EntitySnapshot} to the list of entities this spawner can
143 139 * spawn.
144 140 * <p>
145 141 * The weight will determine how often this entry is chosen to spawn, higher
146 142 * weighted entries will spawn more often than lower weighted ones. <br>
147 143 * The {@link SpawnRule} will determine under what conditions this entry can

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut