use of org.lanternpowered.server.game.registry.factory.TimingsFactoryRegistryModule in project LanternServer by LanternPowered.
the class LanternGameRegistry method registerFactories.
private void registerFactories() {
final List<FactoryRegistry<?, ?>> factoryRegistries = new ArrayList<>();
factoryRegistries.add(new ResourcePackFactoryModule());
factoryRegistries.add(new TimingsFactoryRegistryModule());
try {
for (FactoryRegistry<?, ?> registry : factoryRegistries) {
RegistryHelper.setFactory(registry.getFactoryOwner(), registry.provideFactory());
registry.initialize();
}
} catch (Exception e) {
this.game.getLogger().error("Could not initialize a factory!", e);
}
}
Aggregations