Class CommandGUIButton
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.CommandGUIButton
- All Implemented Interfaces:
Sizeable
A
GUIButton which executes a command.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classCommandGUIButton.AbstractBuilder<B extends CommandGUIButton.AbstractBuilder<B,P>, P extends CommandGUIButton> Abstract Builder for creating variousCommandGUIButtonstatic classBuilder for creatingCommandGUIButton -
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
ConstructorsModifierConstructorDescriptionprotectedCommandGUIButton(GUI gui, org.bukkit.inventory.ItemStack item, int cooldown, org.bukkit.Sound sound, String permission, String command) Creates a new CommandGUIButton -
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
-
CommandGUIButton
protected CommandGUIButton(GUI gui, org.bukkit.inventory.ItemStack item, int cooldown, org.bukkit.Sound sound, String permission, String command) Creates a new CommandGUIButton- Parameters:
gui- The GUIitem- The ItemStack of the Buttoncommand- The command to be executedcooldown- 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
-
-
Method Details