Class SubmitGUIButton.AbstractBuilder<B extends SubmitGUIButton.AbstractBuilder<B,P>,P extends SubmitGUIButton>
java.lang.Object
de.placeblock.betterinventories.Builder<B,P>
de.placeblock.betterinventories.content.GUISection.Builder<B,P>
de.placeblock.betterinventories.content.item.GUIItem.AbstractBuilder<B,P>
de.placeblock.betterinventories.content.item.GUIButton.AbstractBuilder<B,P>
de.placeblock.betterinventories.content.item.impl.SubmitGUIButton.AbstractBuilder<B,P>
- Type Parameters:
B- The Builder that implements this oneP- TheGUIButtonthat is built
- Direct Known Subclasses:
SubmitGUIButton.Builder
- Enclosing class:
- SubmitGUIButton
protected abstract static class SubmitGUIButton.AbstractBuilder<B extends SubmitGUIButton.AbstractBuilder<B,P>,P extends SubmitGUIButton>
extends GUIButton.AbstractBuilder<B,P>
Abstract Builder for creating
SubmitGUIButton-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the onSubmit attributesubmitDelay(int submitDelay) Sets the submitDelay attributesubmitItem(org.bukkit.inventory.ItemStack item) Sets the submitItem attributeMethods inherited from class de.placeblock.betterinventories.content.item.GUIButton.AbstractBuilder
cooldown, onClick, onLeftClick, onRightClick, onShiftClick, onShiftLeftClick, onShiftRightClick, permission, soundMethods inherited from class de.placeblock.betterinventories.content.item.GUIItem.AbstractBuilder
itemStackMethods inherited from class de.placeblock.betterinventories.content.GUISection.Builder
adoptMinMax, getMaxSize, getMinSize, maxSize, maxSize, minSize, minSize, size, size
-
Constructor Details
-
AbstractBuilder
Creates a new Builder- Parameters:
gui- The gui this button belongs to
-
-
Method Details
-
submitItem
Sets the submitItem attribute- Parameters:
item- The item that is shown to submit- Returns:
- Itself
-
submitDelay
Sets the submitDelay attribute- Parameters:
submitDelay- The delay after which the submit item is shown- Returns:
- Itself
-
onSubmit
Sets the onSubmit attribute- Parameters:
onSubmit- Is called when somebody successfully submits- Returns:
- Itself
-