From f617d59f1c52ad77f23ce28fb14bf44986e38ed1 Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Sat, 23 Sep 2023 21:36:29 +1000 Subject: chat message changes #482 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add chat component functions * reword + remove empty text * remove type * isPlayerMessage * include the other stuff in the translator pr plus format * Merge branch 'hannibal002:beta' into chat_component_stuff * Merge remote-tracking branch 'origin/chat_component_stuff' into chat_… * allow to work with priv messages + get ready for future --- .../mixins/transformers/AccessorChatComponentText.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/main/java/at/hannibal2/skyhanni/mixins/transformers/AccessorChatComponentText.java (limited to 'src/main/java/at/hannibal2/skyhanni/mixins') diff --git a/src/main/java/at/hannibal2/skyhanni/mixins/transformers/AccessorChatComponentText.java b/src/main/java/at/hannibal2/skyhanni/mixins/transformers/AccessorChatComponentText.java new file mode 100644 index 000000000..70ce499d2 --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/mixins/transformers/AccessorChatComponentText.java @@ -0,0 +1,14 @@ +package at.hannibal2.skyhanni.mixins.transformers; + +import net.minecraft.util.ChatComponentText; +import org.spongepowered.asm.mixin.Mixin; +import org.spongepowered.asm.mixin.gen.Accessor; + +@Mixin(ChatComponentText.class) +public interface AccessorChatComponentText { + @Accessor("text") + void setText_skyhanni(String text); + + @Accessor("text") + String text_skyhanni(); +} \ No newline at end of file -- cgit