Search in sources :

Example 1 with InstanceWorldWrapper

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);
    }
}
Also used : MainWorldWrapper(com.skelril.skree.content.world.main.MainWorldWrapper) InstanceWorldWrapper(com.skelril.skree.content.world.instance.InstanceWorldWrapper) WorldEffectWrapper(com.skelril.skree.service.internal.world.WorldEffectWrapper) BuildWorldWrapper(com.skelril.skree.content.world.build.BuildWorldWrapper)

Aggregations

BuildWorldWrapper (com.skelril.skree.content.world.build.BuildWorldWrapper)1 InstanceWorldWrapper (com.skelril.skree.content.world.instance.InstanceWorldWrapper)1 MainWorldWrapper (com.skelril.skree.content.world.main.MainWorldWrapper)1 WorldEffectWrapper (com.skelril.skree.service.internal.world.WorldEffectWrapper)1