public class RefRegistry
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static @Nullable java.lang.Object |
EFFECT_FIELD
1.20.3+ org.bukkit.Registry#EFFECT
|
static @Nullable java.lang.Object |
ENCHANTMENT_FIELD
1.14+ org.bukkit.Registry#ENCHANTMENT
|
static @Nullable java.lang.reflect.Method |
GET_METHOD
1.14+ org.bukkit.Registry#get(NamespacedKey)
|
static @Nullable java.lang.Class<?> |
REGISTRY_CLASS
1.14+ org.bukkit.Registry
|
| Modifier and Type | Method and Description |
|---|---|
static @Nullable org.bukkit.potion.PotionEffectType |
getEffect(@NotNull java.lang.String name)
Get a
PotionEffectType by name, using reflection if needed |
static @Nullable org.bukkit.enchantments.Enchantment |
getEnchantment(@NotNull java.lang.String name)
Get an
Enchantment by name, using reflection if needed |
@Nullable public static final @Nullable java.lang.Class<?> REGISTRY_CLASS
@Nullable public static final @Nullable java.lang.reflect.Method GET_METHOD
@Nullable public static final @Nullable java.lang.Object EFFECT_FIELD
@Nullable public static final @Nullable java.lang.Object ENCHANTMENT_FIELD
@Nullable
public static @Nullable org.bukkit.potion.PotionEffectType getEffect(@NotNull
@NotNull java.lang.String name)
PotionEffectType by name, using reflection if neededname - the name of the potion effectPotionEffectType@Nullable
public static @Nullable org.bukkit.enchantments.Enchantment getEnchantment(@NotNull
@NotNull java.lang.String name)
Enchantment by name, using reflection if neededname - the name of the enchantmentEnchantment