main v2.1.0
Skye 2 years ago
parent 4ecec51c8c
commit 08a31eadf3
Signed by: me
GPG Key ID: 0104BC05F41B77B8

@ -3,5 +3,5 @@ org.gradle.jvmargs=-Xmx2G
mod.name=e4mc mod.name=e4mc
mod.id=e4mc_minecraft mod.id=e4mc_minecraft
mod.version=2.0.0 mod.version=2.1.0
mod.group=vg.skye mod.group=vg.skye

@ -16,7 +16,7 @@ object E4mcClient : ModInitializer {
//#endif //#endif
const val NAME = "e4mc" const val NAME = "e4mc"
const val ID = "e4mc_minecraft" const val ID = "e4mc_minecraft"
const val VERSION = "2.0.0" const val VERSION = "2.1.0"
@JvmField @JvmField
val LOGGER: Logger = LoggerFactory.getLogger("e4mc") val LOGGER: Logger = LoggerFactory.getLogger("e4mc")

@ -16,6 +16,7 @@ import net.fabricmc.loader.api.FabricLoader
//#endif //#endif
import net.minecraft.client.MinecraftClient import net.minecraft.client.MinecraftClient
import net.minecraft.text.ClickEvent import net.minecraft.text.ClickEvent
import net.minecraft.text.HoverEvent
import net.minecraft.text.Text import net.minecraft.text.Text
//#if MC>=11900 //#if MC>=11900
import net.minecraft.util.Formatting import net.minecraft.util.Formatting
@ -126,6 +127,7 @@ class E4mcRelayHandler: WebSocketClient(URI("wss://ingress.e4mc.link")) {
it it
.withClickEvent(ClickEvent(ClickEvent.Action.COPY_TO_CLIPBOARD, domain)) .withClickEvent(ClickEvent(ClickEvent.Action.COPY_TO_CLIPBOARD, domain))
.withColor(Formatting.GREEN) .withColor(Formatting.GREEN)
.withHoverEvent(HoverEvent(HoverEvent.Action.SHOW_TEXT, Text.translatable("chat.copy.click")))
} }
) )
//#elseif FABRIC==1 //#elseif FABRIC==1
@ -133,12 +135,14 @@ class E4mcRelayHandler: WebSocketClient(URI("wss://ingress.e4mc.link")) {
//$$ return@styled it //$$ return@styled it
//$$ .withClickEvent(ClickEvent(ClickEvent.Action.COPY_TO_CLIPBOARD, domain)) //$$ .withClickEvent(ClickEvent(ClickEvent.Action.COPY_TO_CLIPBOARD, domain))
//$$ .withColor(Formatting.GREEN) //$$ .withColor(Formatting.GREEN)
//$$ .withHoverEvent(HoverEvent(HoverEvent.Action.SHOW_TEXT, TranslatableText("chat.copy.click")))
//$$ }) //$$ })
//#else //#else
//$$ return TranslatableComponent("text.e4mc_quilt.domainAssigned", TextComponent(domain).withStyle { //$$ return TranslatableComponent("text.e4mc_quilt.domainAssigned", TextComponent(domain).withStyle {
//$$ return@withStyle it //$$ return@withStyle it
//$$ .withClickEvent(ClickEvent(ClickEvent.Action.COPY_TO_CLIPBOARD, domain)) //$$ .withClickEvent(ClickEvent(ClickEvent.Action.COPY_TO_CLIPBOARD, domain))
//$$ .withColor(ChatFormatting.GREEN) //$$ .withColor(ChatFormatting.GREEN)
//$$ .withHoverEvent(HoverEvent(HoverEvent.Action.SHOW_TEXT, TranslatableComponent("chat.copy.click")))
//$$ }) //$$ })
//#endif //#endif
} }

Loading…
Cancel
Save