CoreHandler.java 文件源码

java
阅读 32 收藏 0 点赞 0 评论 0

项目:McHeliPrivacyShield 作者:
@SubscribeEvent
public void onModListShield(final @Nonnull ModListShieldEvent.Post event) {
    if (Config.getConfig().notifyChat.get()) {
        final String mode = ModListShieldRegistery.getListener(Config.getConfig().mlmode.get()).name();
        ChatBuilder.create("mchelishield.notification.chat.modlist.message").useTranslation().setParams(mode).chatClient();
        ChatBuilder.create("mchelishield.notification.chat.modlist.message.mode").useTranslation().setParams(mode).chatClient();
    }
    if (Config.getConfig().notifySound.get())
        FMLClientHandler.instance().getClient().getSoundHandler().playSound(PositionedSoundRecord.func_147674_a(new ResourceLocation("mchelishield", "notification.sound"), 1.0F));
    if (Config.getConfig().notifyEffect.get())
        this.effectStrength = .75f;
    if (Config.getConfig().notifyOverlay.get()) {
        this.text = I18n.format("mchelishield.notification.overlay.modlist.message");
        this.textStrength = 1f;
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号