Class SubmitGUIButton
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.SubmitGUIButton
- All Implemented Interfaces:
Sizeable
Button which shows a confirm-item if clicked.
Builder:
SubmitGUIButtonBuilder-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.bukkit.inventory.ItemStackThe default submit-itemFields inherited from class de.placeblock.betterinventories.content.item.GUIItem
BUTTON_SIZE, itemStackFields inherited from class de.placeblock.betterinventories.content.GUISection
maxSize, minSize -
Constructor Summary
ConstructorsConstructorDescriptionSubmitGUIButton(GUI gui, org.bukkit.inventory.ItemStack item) Creates a new SubmitGUIButtonSubmitGUIButton(GUI gui, org.bukkit.inventory.ItemStack item, int submitDelay) Creates a new SubmitGUIButtonSubmitGUIButton(GUI gui, org.bukkit.inventory.ItemStack item, String permission) Creates a new SubmitGUIButtonSubmitGUIButton(GUI gui, org.bukkit.inventory.ItemStack item, String permission, int submitDelay) Creates a new SubmitGUIButtonSubmitGUIButton(GUI gui, org.bukkit.inventory.ItemStack item, org.bukkit.inventory.ItemStack submitItem) Creates a new SubmitGUIButtonSubmitGUIButton(GUI gui, org.bukkit.inventory.ItemStack item, org.bukkit.inventory.ItemStack submitItem, int submitDelay) Creates a new SubmitGUIButtonSubmitGUIButton(GUI gui, org.bukkit.inventory.ItemStack item, org.bukkit.inventory.ItemStack submitItem, String permission) Creates a new SubmitGUIButtonSubmitGUIButton(GUI gui, org.bukkit.inventory.ItemStack item, org.bukkit.inventory.ItemStack submitItem, String permission, int submitDelay) Creates a new SubmitGUIButton -
Method Summary
Methods inherited from class de.placeblock.betterinventories.content.item.GUIButton
applyCooldown, click, hasPermission, onLeftClick, onRightClick, onShiftClick, onShiftLeftClick, onShiftRightClick, setCooldownMethods inherited from class de.placeblock.betterinventories.content.item.GUIItem
getSectionAt, getSectionAt, renderMethods 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
-
SUBMIT_ITEM
public static final org.bukkit.inventory.ItemStack SUBMIT_ITEMThe default submit-item
-
-
Constructor Details
-
SubmitGUIButton
Creates a new SubmitGUIButton- Parameters:
gui- The GUIitem- The ItemStack of the Button
-
SubmitGUIButton
Creates a new SubmitGUIButton- Parameters:
gui- The GUIitem- The ItemStack of the ButtonsubmitDelay- The delay before the submit item is shown
-
SubmitGUIButton
public SubmitGUIButton(GUI gui, org.bukkit.inventory.ItemStack item, org.bukkit.inventory.ItemStack submitItem) Creates a new SubmitGUIButton- Parameters:
gui- The GUIitem- The ItemStack of the ButtonsubmitItem- The item to be displayed on submit
-
SubmitGUIButton
public SubmitGUIButton(GUI gui, org.bukkit.inventory.ItemStack item, org.bukkit.inventory.ItemStack submitItem, int submitDelay) Creates a new SubmitGUIButton- Parameters:
gui- The GUIitem- The ItemStack of the ButtonsubmitDelay- The delay before the submit item is shownsubmitItem- The item to be displayed on submit
-
SubmitGUIButton
Creates a new SubmitGUIButton- Parameters:
gui- The GUIitem- The ItemStack of the Buttonpermission- The permission required to click on this button
-
SubmitGUIButton
public SubmitGUIButton(GUI gui, org.bukkit.inventory.ItemStack item, String permission, int submitDelay) Creates a new SubmitGUIButton- Parameters:
gui- The GUIitem- The ItemStack of the Buttonpermission- The permission required to click on this buttononsubmitDelay- The delay before the submit item is shown
-
SubmitGUIButton
public SubmitGUIButton(GUI gui, org.bukkit.inventory.ItemStack item, org.bukkit.inventory.ItemStack submitItem, String permission) Creates a new SubmitGUIButton- Parameters:
gui- The GUIitem- The ItemStack of the ButtonsubmitItem- The item to be displayed on submitpermission- The permission required to click on this button
-
SubmitGUIButton
public SubmitGUIButton(GUI gui, org.bukkit.inventory.ItemStack item, org.bukkit.inventory.ItemStack submitItem, String permission, int submitDelay) Creates a new SubmitGUIButton- Parameters:
gui- The GUIitem- The ItemStack of the ButtonsubmitItem- The item to be displayed on submitpermission- The permission required to click on this buttonsubmitDelay- The delay before the submit item is shown
-
-
Method Details