use of com.almuradev.almura.feature.notification.NotificationModule 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());
});
}
Aggregations