More PotionEffectType API

This commit is contained in:
Jake Potrebic
2021-05-27 21:58:33 -07:00
parent 5746f17f68
commit 5ac3ad3792
3 changed files with 100 additions and 1 deletions

View File

@@ -367,6 +367,15 @@ public interface Registry<T extends Keyed> extends Iterable<T> {
* @see GameEvent
*/
Registry<GameEvent> GAME_EVENT = io.papermc.paper.registry.RegistryAccess.registryAccess().getRegistry(io.papermc.paper.registry.RegistryKey.GAME_EVENT); // Paper
// Paper start - potion effect type registry
/**
* Potion effect types.
*
* @see org.bukkit.potion.PotionEffectType
*/
Registry<org.bukkit.potion.PotionEffectType> POTION_EFFECT_TYPE = EFFECT;
// Paper end - potion effect type registry
/**
* Get the object by its key.
*