Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public ItemStack getItemAt(final int slot) {
- if (slot < getCurrentPageItems().size()) {
- final T object = getCurrentPageItems().get(slot);
- if (object != null)
- return convertToItemStack(object);
- }
- if (slot == this.getPreviousButtonPosition())
- return prevButton.getItem();
- if (slot == this.getNextButtonPosition())
- return nextButton.getItem();
- return null;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement