Commits

md_5 authored 5552f47c809
SPIGOT-1356: Clarify expectations about PotionEffectType.values().
No tags

src/main/java/org/bukkit/potion/PotionEffectType.java

Modified
273 273
274 274 /**
275 275 * Stops accepting any effect type registrations.
276 276 */
277 277 public static void stopAcceptingRegistrations() {
278 278 acceptingNew = false;
279 279 }
280 280
281 281 /**
282 282 * Returns an array of all the registered {@link PotionEffectType}s.
283 + * This array is not necessarily in any particular order and may contain null.
283 284 *
284 285 * @return Array of types.
285 286 */
286 287 public static PotionEffectType[] values() {
287 288 return byId.clone();
288 289 }
289 290 }

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

Add shortcut