-
Notifications
You must be signed in to change notification settings - Fork 65
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
Stop SlotIterator #203
Comments
Did you never use an iterator? Or an InputStream? |
sorry. I changed the question. I tried to list online players' skulls in the GUI using SlotIterator, but the last created player's skull is added to all slots. How can I stop this? |
code: for (Player all : Bukkit.getOnlinePlayers()) {
iter.set(ClickableItem.of(skull, e -> {
. . .
}));
} |
I would recommend using pages: Get the pagination with
I would recommend adding another item to switch the pages. But just read through the documentation for this. |
Very nice! Thanks for your support! |
Excuse, do you know how to stop appending at a specific row or column in the current page? |
What do you mean? |
Due to the addToIterator method, the number of players is added from slot 0 to the last slot in the inventory. But I want to add the player's head only up to the 4th row and start from the next page after the 4th row. |
I want to get the current column and row.
The text was updated successfully, but these errors were encountered: