Class PaginatorGUIButton
java.lang.Object
de.placeblock.betterinventories.content.GUISection
de.placeblock.betterinventories.content.item.GUIItem
de.placeblock.betterinventories.content.item.GUIButton
de.placeblock.betterinventories.content.item.impl.paginator.PaginatorGUIButton
- All Implemented Interfaces:
Sizeable
- Direct Known Subclasses:
NextPageGUIButton,PreviousPageGUIButton
Abstract class for
GUIButtons that belong to a specific PaginatorGUIPane.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classPaginatorGUIButton.Builder<B extends PaginatorGUIButton.Builder<B,P>, P extends PaginatorGUIButton> Abstract Builder for creating variousPaginatorGUIButtonNested classes/interfaces inherited from class de.placeblock.betterinventories.content.item.GUIButton
GUIButton.AbstractBuilder<B extends GUIButton.AbstractBuilder<B,P>, P extends GUIButton> -
Field Summary
FieldsFields inherited from class de.placeblock.betterinventories.content.item.GUIItem
BUTTON_SIZE, itemStackFields inherited from class de.placeblock.betterinventories.content.GUISection
maxSize, minSize -
Constructor Summary
ConstructorsConstructorDescriptionPaginatorGUIButton(GUI gui, org.bukkit.inventory.ItemStack item, int cooldown, org.bukkit.Sound sound, String permission, PaginatorGUIPane paginatorGUIPane) Creates a new PaginatorGUIButton -
Method Summary
Methods inherited from class de.placeblock.betterinventories.content.item.GUIButton
applyCooldown, click, hasPermission, onClick, onItemClick, onLeftClick, onRightClick, onShiftClick, onShiftLeftClick, onShiftRightClick, setCooldownMethods inherited from class de.placeblock.betterinventories.content.item.GUIItem
onItemAdd, onItemAmount, onItemRemove, render, searchMethods inherited from class de.placeblock.betterinventories.content.GUISection
getEmptyContentList, getHeight, getSlots, getWidth, setSize, slotToVector, vectorToSlotMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.placeblock.betterinventories.Sizeable
clampSize, getMaxSize, getMinSize, getSize
-
Field Details
-
paginatorGUIPane
The according Paginator
-
-
Constructor Details
-
PaginatorGUIButton
public PaginatorGUIButton(GUI gui, org.bukkit.inventory.ItemStack item, int cooldown, org.bukkit.Sound sound, String permission, PaginatorGUIPane paginatorGUIPane) Creates a new PaginatorGUIButton- Parameters:
gui- The GUIpaginatorGUIPane- The according Paginatoritem- The ItemStack of the Buttoncooldown- The cooldown of the Buttonpermission- The permission required to press this buttonsound- The sound played when pressing this button
-