Search in sources :

Example 1 with StoreModule

use of com.almuradev.almura.feature.store.StoreModule in project Almura by AlmuraDev.

the class FeatureModule method configure.

@Override
protected void configure() {
    this.install(new HeadUpDisplayModule());
    this.install(new NickModule());
    this.install(new NotificationModule());
    this.install(new TitleModule());
    this.install(new GuideModule());
    this.install(new ComplexContentModule());
    this.install(new CacheModule());
    this.install(new ExchangeModule());
    this.install(new StoreModule());
    this.install(new DeathModule());
    this.install(new StorageModule());
    this.install(new BiomeModule());
    this.install(new FeaturesModule());
    this.install(new AnimalModule());
    this.facet().add(SignEditFeature.class);
    this.facet().add(ItemReturnHelper.class);
    this.nerfVanillaFood();
    this.install(new ClaimModule());
    this.install(new MembershipModule());
    this.install(new SkillsModule());
    if (SpongeImplHooks.isDeobfuscatedEnvironment()) {
        // Force loading this because it will fail the Platform.Type checks below during normal startup.
        this.loadServerSideModules();
    }
    this.on(Platform.Type.CLIENT, () -> {
        final class ClientModule extends AbstractModule implements ClientBinder {

            @SideOnly(Side.CLIENT)
            @Override
            protected void configure() {
                this.facet().add(OffHandListener.class);
            }
        }
        this.install(new ClientModule());
    });
    this.on(Platform.Type.SERVER, () -> {
        // Dedicated Server Only!
        final class ServerModule extends AbstractModule implements CommonBinder {

            @SideOnly(Side.SERVER)
            @Override
            protected void configure() {
                // This is never touched in single player / de-obfuscated environments.
                loadServerSideModules();
            }
        }
        this.install(new ServerModule());
    });
}
Also used : GuideModule(com.almuradev.almura.feature.guide.GuideModule) StorageModule(com.almuradev.almura.feature.storage.StorageModule) MembershipModule(com.almuradev.almura.feature.membership.MembershipModule) ExchangeModule(com.almuradev.almura.feature.exchange.ExchangeModule) SkillsModule(com.almuradev.almura.feature.skills.SkillsModule) StoreModule(com.almuradev.almura.feature.store.StoreModule) DeathModule(com.almuradev.almura.feature.death.DeathModule) ComplexContentModule(com.almuradev.almura.feature.complex.ComplexContentModule) CacheModule(com.almuradev.almura.feature.cache.CacheModule) BiomeModule(com.almuradev.almura.feature.biome.BiomeModule) FeaturesModule(com.almuradev.almura.feature.menu.ingame.FeaturesModule) AnimalModule(com.almuradev.almura.feature.animal.AnimalModule) CommonBinder(com.almuradev.almura.shared.inject.CommonBinder) AbstractModule(net.kyori.violet.AbstractModule) TitleModule(com.almuradev.almura.feature.title.TitleModule) NotificationModule(com.almuradev.almura.feature.notification.NotificationModule) HeadUpDisplayModule(com.almuradev.almura.feature.hud.HeadUpDisplayModule) ClientBinder(com.almuradev.almura.shared.inject.ClientBinder) NickModule(com.almuradev.almura.feature.nick.NickModule) ClaimModule(com.almuradev.almura.feature.claim.ClaimModule)

Aggregations

AnimalModule (com.almuradev.almura.feature.animal.AnimalModule)1 BiomeModule (com.almuradev.almura.feature.biome.BiomeModule)1 CacheModule (com.almuradev.almura.feature.cache.CacheModule)1 ClaimModule (com.almuradev.almura.feature.claim.ClaimModule)1 ComplexContentModule (com.almuradev.almura.feature.complex.ComplexContentModule)1 DeathModule (com.almuradev.almura.feature.death.DeathModule)1 ExchangeModule (com.almuradev.almura.feature.exchange.ExchangeModule)1 GuideModule (com.almuradev.almura.feature.guide.GuideModule)1 HeadUpDisplayModule (com.almuradev.almura.feature.hud.HeadUpDisplayModule)1 MembershipModule (com.almuradev.almura.feature.membership.MembershipModule)1 FeaturesModule (com.almuradev.almura.feature.menu.ingame.FeaturesModule)1 NickModule (com.almuradev.almura.feature.nick.NickModule)1 NotificationModule (com.almuradev.almura.feature.notification.NotificationModule)1 SkillsModule (com.almuradev.almura.feature.skills.SkillsModule)1 StorageModule (com.almuradev.almura.feature.storage.StorageModule)1 StoreModule (com.almuradev.almura.feature.store.StoreModule)1 TitleModule (com.almuradev.almura.feature.title.TitleModule)1 ClientBinder (com.almuradev.almura.shared.inject.ClientBinder)1 CommonBinder (com.almuradev.almura.shared.inject.CommonBinder)1 AbstractModule (net.kyori.violet.AbstractModule)1