MetaJNI
MetaJNI copied to clipboard
How to new a minecraft's class
BEGIN_KLASS_DEF_EX(ChatComponentText, "fa", ChatComponentStyle)
static ChatComponentText create(const char* str)
{
return ChatComponentText(String::create(str));
}
jni::method<String, "g"> getChatComponentText_TextValue{ *this };
END_KLASS_DEF()
this is my code but seemingly error
maps::ChatComponentText text = maps::ChatComponentText::new_object(&maps::ChatComponentText::constructor,maps::String::create("Test"));
i complete by myself