Commits
md_5 authored 5552f47c809
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 | } |