MetaJNI
MetaJNI copied to clipboard
How to get the interface?
public void printChatMessage(IChatComponent p_146227_1_)
{
this.printChatMessageWithOptionalDeletion(p_146227_1_, 0);
}
i want to use this void but the IChatComponent is interface
mapping: BEGIN_KLASS_DEF(IChatComponent, "eu") END_KLASS_DEF() BEGIN_KLASS_DEF_EX(ChatComponentStyle, "es", IChatComponent) END_KLASS_DEF()
BEGIN_KLASS_DEF_EX(ChatComponentText, "fa", ChatComponentStyle)
jni::method<String, "g"> getChatComponentText_TextValue{ *this };
jni::constructor<String> constructor{ *this };
END_KLASS_DEF()
BEGIN_KLASS_DEF_EX(GuiNewChat, "avt", Gui)
jni::method<void, "a", jni::NOT_STATIC, ChatComponentText> printChatMessage{ *this };
jni::method<jint, "g"> getChatHeight{ *this };
END_KLASS_DEF()
code: maps::ChatComponentText text = maps::ChatComponentText::new_object(&maps::ChatComponentText::constructor,maps::String::create("Test")); guiChat.printChatMessage(text);
i want to know how to fix and use