Class BackGUIButton
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.SwitchGUIButton
de.placeblock.betterinventories.content.item.impl.BackGUIButton
- All Implemented Interfaces:
Sizeable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe Builder for BackGUIButtonsNested classes/interfaces inherited from class de.placeblock.betterinventories.content.item.impl.SwitchGUIButton
SwitchGUIButton.AbstractBuilder<B extends SwitchGUIButton.AbstractBuilder<B,P>, P extends SwitchGUIButton> -
Field Summary
Fields inherited from class de.placeblock.betterinventories.content.item.GUIItem
BUTTON_SIZE, itemStackFields inherited from class de.placeblock.betterinventories.content.GUISection
maxSize, minSize -
Constructor Summary
ConstructorsConstructorDescriptionBackGUIButton(GUI gui, int cooldown, org.bukkit.Sound sound, String permission, Function<org.bukkit.entity.Player, GUI> targetGUI, net.kyori.adventure.text.TextComponent title) Creates a new BackGUIButton -
Method Summary
Methods inherited from class de.placeblock.betterinventories.content.item.impl.SwitchGUIButton
onClickMethods inherited from class de.placeblock.betterinventories.content.item.GUIButton
applyCooldown, click, hasPermission, 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
-
Constructor Details
-
BackGUIButton
public BackGUIButton(GUI gui, int cooldown, org.bukkit.Sound sound, String permission, Function<org.bukkit.entity.Player, GUI> targetGUI, net.kyori.adventure.text.TextComponent title) Creates a new BackGUIButton- Parameters:
gui- The GUItargetGUI- The GUI to be opened on clicktitle- The title of the Buttoncooldown- The cooldown of the Button. Applied to the material, not the Button alone.sound- The sound that is played when pressing that buttonpermission- The permission required to press this button
-