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

DOCUMENTATION #12

Open
blitzdose opened this issue Jan 5, 2024 · 2 comments
Open

DOCUMENTATION #12

blitzdose opened this issue Jan 5, 2024 · 2 comments

Comments

@blitzdose
Copy link

Hi,

your API is great. It should make it easy to implement stuff like GUIs but with practically zero documentation it's tough to use. Your examples are not nearly enough to start coding with your API. I also noticed that the Discord invitation is not valid anymore so there is no place where I could ask for help.

I already mentioned the missing documentation a year ago as a spigot.mc review but nothing has changed since then. Even just using Javadoc would help because at the moment I have to dig through your code just to know what methods there are and try to guess what exactly they do. My current problem is "How can I add a ClickListener on an Iiem in a GUI?" The demo only shows how to add an Item.

@Straikerinos
Copy link
Collaborator

Hi, sorry for the complications, I have a lot on my plate at the moment.
The discord link should be fixed. Alternatively: https://discord.gg/APwYKQRxby
You can contact me directly there and I'll give you tips on the API if you do.
Otherwise regarding the GUI and ItemGUI, Click Event is implemented directly in ItemGUI as an abstract method.

GUI gui = new GUI("title here", GUI.LINES_6);
gui.setItem(0, new ItemGUI(ItemMaker.of(XMaterial.STONE).displayName("&7Stone!").build()) {
	
	@Override
	public void onClick(Player player, HolderGUI gui, ClickType click) {
		player.sendMessage("You clicked on stone.");
		gui.close(player);
	}
});
gui.open(target)```

@blitzdose
Copy link
Author

Hi, thanks for the clarification. Don't worry take your time. But would be nice if a documentation would be prioritized. For developers its just a nightmare otherwise :)

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

2 participants