Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to new a minecraft's class #2

Open
PixelSkider opened this issue Sep 5, 2024 · 1 comment
Open

How to new a minecraft's class #2

PixelSkider opened this issue Sep 5, 2024 · 1 comment

Comments

@PixelSkider
Copy link

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
@PixelSkider
Copy link
Author

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

i complete by myself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant