MetaJNI icon indicating copy to clipboard operation
MetaJNI copied to clipboard

How to new a minecraft's class

Open ImKalud opened this issue 1 year ago • 1 comments

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

ImKalud avatar Sep 05 '24 15:09 ImKalud

maps::ChatComponentText text = maps::ChatComponentText::new_object(&maps::ChatComponentText::constructor,maps::String::create("Test"));

i complete by myself

ImKalud avatar Sep 05 '24 15:09 ImKalud