@SubscribeEvent
public void onScreenShotShield(final @Nonnull ScreenShotShieldEvent.Post event) {
if (Config.getConfig().notifyChat.get()) {
final String mode = ScreenShotShieldRegistery.getListener(Config.getConfig().ssmode.get()).name();
ChatBuilder.create("mchelishield.notification.chat.screenshot.message").useTranslation().setParams(mode).chatClient();
ChatBuilder.create("mchelishield.notification.chat.screenshot.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.screenshot.message");
this.textStrength = 1f;
}
}
CoreHandler.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:McHeliPrivacyShield
作者:
评论列表
文章目录