use of com.skelril.skree.content.world.instance.InstanceWorldWrapper in project Skree by Skelril.
the class WorldSystem method initWrappers.
private void initWrappers() throws IOException {
List<WorldEffectWrapper> wrappers = Lists.newArrayList(new MainWorldWrapper(), new BuildWorldWrapper(ConfigLoader.loadConfig("build.json", BuildConfig.class)), new InstanceWorldWrapper(), new WildernessWorldWrapper(ConfigLoader.loadConfig("wilderness.json", WildernessConfig.class)));
for (WorldEffectWrapper wrapper : wrappers) {
this.wrappers.put(wrapper.getName(), wrapper);
Sponge.getEventManager().registerListeners(SkreePlugin.inst(), wrapper);
service.registerEffectWrapper(wrapper);
}
}
Aggregations