@Singleton public class EnchantmentRegistry extends Object implements org.cloudburstmc.api.registry.Registry
| Constructor and Description |
|---|
EnchantmentRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static EnchantmentRegistry |
get() |
org.cloudburstmc.api.enchantment.behavior.EnchantmentBehavior |
getBehavior(org.cloudburstmc.api.enchantment.EnchantmentType type) |
org.cloudburstmc.api.enchantment.EnchantmentInstance |
getEnchantment(org.cloudburstmc.api.enchantment.EnchantmentType type) |
org.cloudburstmc.api.enchantment.EnchantmentInstance |
getEnchantment(org.cloudburstmc.api.enchantment.EnchantmentType type,
int level) |
org.cloudburstmc.api.enchantment.EnchantmentType |
getType(org.cloudburstmc.api.util.Identifier id) |
org.cloudburstmc.api.enchantment.EnchantmentType |
getType(short id) |
void |
register(@NonNull org.cloudburstmc.api.enchantment.EnchantmentType type,
org.cloudburstmc.api.enchantment.behavior.EnchantmentBehavior behavior) |
public static EnchantmentRegistry get()
public void register(@NonNull
@NonNull org.cloudburstmc.api.enchantment.EnchantmentType type,
@Nonnull
org.cloudburstmc.api.enchantment.behavior.EnchantmentBehavior behavior)
public org.cloudburstmc.api.enchantment.EnchantmentInstance getEnchantment(@Nonnull org.cloudburstmc.api.enchantment.EnchantmentType type)
public org.cloudburstmc.api.enchantment.EnchantmentInstance getEnchantment(@Nonnull org.cloudburstmc.api.enchantment.EnchantmentType type, int level)
public org.cloudburstmc.api.enchantment.behavior.EnchantmentBehavior getBehavior(@Nonnull org.cloudburstmc.api.enchantment.EnchantmentType type)
public org.cloudburstmc.api.enchantment.EnchantmentType getType(short id)
public org.cloudburstmc.api.enchantment.EnchantmentType getType(org.cloudburstmc.api.util.Identifier id)
public void close()
throws org.cloudburstmc.api.registry.RegistryException
close in interface org.cloudburstmc.api.registry.Registryorg.cloudburstmc.api.registry.RegistryExceptionCopyright © 2021. All rights reserved.