Class SwitchGUIButton
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
- All Implemented Interfaces:
Sizeable
- Direct Known Subclasses:
BackGUIButton
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classSwitchGUIButton.AbstractBuilder<B extends SwitchGUIButton.AbstractBuilder<B,P>, P extends SwitchGUIButton> Abstract Builder for creatingSwitchGUIButtonstatic classBuilder for creatingSwitchGUIButton -
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
ConstructorsConstructorDescriptionSwitchGUIButton(GUI gui, org.bukkit.inventory.ItemStack item, int cooldown, org.bukkit.Sound sound, String permission, Function<org.bukkit.entity.Player, GUI> targetGUI) Creates a new SwitchGUIButton The creation of the targetGUI can use the player which clicked the button -
Method Summary
Methods 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
-
SwitchGUIButton
public SwitchGUIButton(GUI gui, org.bukkit.inventory.ItemStack item, int cooldown, org.bukkit.Sound sound, String permission, Function<org.bukkit.entity.Player, GUI> targetGUI) Creates a new SwitchGUIButton The creation of the targetGUI can use the player which clicked the button- Parameters:
gui- The GUIitem- The ItemStack of the ButtontargetGUI- The GUI to be openedcooldown- The cooldown of the Buttonpermission- The permission required to press this buttonsound- The sound played when pressing this button
-
-
Method Details