Package org.cloudburstmc.server.registry
Class GeneratorRegistry
java.lang.Object
org.cloudburstmc.server.registry.GeneratorRegistry
- All Implemented Interfaces:
org.cloudburstmc.api.registry.Registry
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static GeneratorRegistryget()org.cloudburstmc.api.util.IdentifiergetGeneratorFactory(org.cloudburstmc.api.util.Identifier identifier)booleanisRegistered(org.cloudburstmc.api.util.Identifier identifier)voidregister(org.cloudburstmc.api.util.Identifier identifier, GeneratorFactory factory, int fallbackWeight)
-
Method Details
-
get
-
register
public void register(org.cloudburstmc.api.util.Identifier identifier, GeneratorFactory factory, int fallbackWeight) throws org.cloudburstmc.api.registry.RegistryException- Throws:
org.cloudburstmc.api.registry.RegistryException
-
getGeneratorFactory
-
getFallback
public org.cloudburstmc.api.util.Identifier getFallback() -
isRegistered
public boolean isRegistered(org.cloudburstmc.api.util.Identifier identifier) -
close
public void close()- Specified by:
closein interfaceorg.cloudburstmc.api.registry.Registry
-