From 08a31eadf3abb55328442b0ac021fc39a6c83cb4 Mon Sep 17 00:00:00 2001 From: Skye Date: Mon, 17 Apr 2023 20:57:04 +0900 Subject: [PATCH] 2.1.0 --- gradle.properties | 2 +- src/main/kotlin/vg/skye/e4mc_minecraft/E4mcClient.kt | 2 +- src/main/kotlin/vg/skye/e4mc_minecraft/E4mcRelayHandler.kt | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 270259c..3087581 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,5 +3,5 @@ org.gradle.jvmargs=-Xmx2G mod.name=e4mc mod.id=e4mc_minecraft -mod.version=2.0.0 +mod.version=2.1.0 mod.group=vg.skye \ No newline at end of file diff --git a/src/main/kotlin/vg/skye/e4mc_minecraft/E4mcClient.kt b/src/main/kotlin/vg/skye/e4mc_minecraft/E4mcClient.kt index 0017a50..dde418d 100644 --- a/src/main/kotlin/vg/skye/e4mc_minecraft/E4mcClient.kt +++ b/src/main/kotlin/vg/skye/e4mc_minecraft/E4mcClient.kt @@ -16,7 +16,7 @@ object E4mcClient : ModInitializer { //#endif const val NAME = "e4mc" const val ID = "e4mc_minecraft" - const val VERSION = "2.0.0" + const val VERSION = "2.1.0" @JvmField val LOGGER: Logger = LoggerFactory.getLogger("e4mc") diff --git a/src/main/kotlin/vg/skye/e4mc_minecraft/E4mcRelayHandler.kt b/src/main/kotlin/vg/skye/e4mc_minecraft/E4mcRelayHandler.kt index 43b440e..368ea15 100644 --- a/src/main/kotlin/vg/skye/e4mc_minecraft/E4mcRelayHandler.kt +++ b/src/main/kotlin/vg/skye/e4mc_minecraft/E4mcRelayHandler.kt @@ -16,6 +16,7 @@ import net.fabricmc.loader.api.FabricLoader //#endif import net.minecraft.client.MinecraftClient import net.minecraft.text.ClickEvent +import net.minecraft.text.HoverEvent import net.minecraft.text.Text //#if MC>=11900 import net.minecraft.util.Formatting @@ -126,6 +127,7 @@ class E4mcRelayHandler: WebSocketClient(URI("wss://ingress.e4mc.link")) { it .withClickEvent(ClickEvent(ClickEvent.Action.COPY_TO_CLIPBOARD, domain)) .withColor(Formatting.GREEN) + .withHoverEvent(HoverEvent(HoverEvent.Action.SHOW_TEXT, Text.translatable("chat.copy.click"))) } ) //#elseif FABRIC==1 @@ -133,12 +135,14 @@ class E4mcRelayHandler: WebSocketClient(URI("wss://ingress.e4mc.link")) { //$$ return@styled it //$$ .withClickEvent(ClickEvent(ClickEvent.Action.COPY_TO_CLIPBOARD, domain)) //$$ .withColor(Formatting.GREEN) + //$$ .withHoverEvent(HoverEvent(HoverEvent.Action.SHOW_TEXT, TranslatableText("chat.copy.click"))) //$$ }) //#else //$$ return TranslatableComponent("text.e4mc_quilt.domainAssigned", TextComponent(domain).withStyle { //$$ return@withStyle it //$$ .withClickEvent(ClickEvent(ClickEvent.Action.COPY_TO_CLIPBOARD, domain)) //$$ .withColor(ChatFormatting.GREEN) + //$$ .withHoverEvent(HoverEvent(HoverEvent.Action.SHOW_TEXT, TranslatableComponent("chat.copy.click"))) //$$ }) //#endif }