Class BaseIOGUIPane.Builder<B extends BaseIOGUIPane.Builder<B,P>,P extends BaseIOGUIPane<P>>
java.lang.Object
de.placeblock.betterinventories.Builder<B,P>
de.placeblock.betterinventories.content.GUISection.AbstractBuilder<B,P>
de.placeblock.betterinventories.content.pane.impl.simple.BaseSimpleGUIPane.AbstractBuilder<B,P,GUIItem>
de.placeblock.betterinventories.content.pane.impl.simple.BaseSimpleItemGUIPane.AbstractBuilder<B,P>
de.placeblock.betterinventories.content.pane.impl.io.BaseIOGUIPane.Builder<B,P>
- Type Parameters:
B- The Builder that implements this oneP- The Product that is Build
- Direct Known Subclasses:
IOGUIPane.Builder,SynchedGUIPane.Builder
- Enclosing class:
- BaseIOGUIPane<S extends BaseIOGUIPane<S>>
public abstract static class BaseIOGUIPane.Builder<B extends BaseIOGUIPane.Builder<B,P>,P extends BaseIOGUIPane<P>>
extends BaseSimpleItemGUIPane.AbstractBuilder<B,P>
Builder for
BaseIOGUIPane-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BiConsumer<Vector2d,org.bukkit.inventory.ItemStack> Gets the onchange consumerinput(boolean input) Sets the input attributeprotected booleanisInput()Gets whether input is allowedprotected booleanisOutput()Gets whether output is allowedonChange(BiConsumer<Vector2d, org.bukkit.inventory.ItemStack> onChange) Sets the onChange attributeoutput(boolean output) Sets the output attributeMethods inherited from class de.placeblock.betterinventories.content.pane.impl.simple.BaseSimpleGUIPane.AbstractBuilder
autoSize, isAutoSizeMethods inherited from class de.placeblock.betterinventories.content.GUISection.AbstractBuilder
adoptMinMax, getMaxSize, getMinSize, maxSize, maxSize, minSize, minSize, size, size
-
Constructor Details
-
Builder
Creates a new Builder- Parameters:
gui- The GUI this Pane belongs to
-
-
Method Details
-
input
Sets the input attribute- Parameters:
input- Whether to accept new items- Returns:
- Itself
-
output
Sets the output attribute- Parameters:
output- Whether to allow the player to remove items- Returns:
- Itself
-
onChange
Sets the onChange attribute- Parameters:
onChange- Called when an item changes.BaseIOGUIPane.onItemChange(Vector2d, ItemStack)- Returns:
- Itself
-
isInput
protected boolean isInput()Gets whether input is allowed- Returns:
- Whether input is allowed
-
isOutput
protected boolean isOutput()Gets whether output is allowed- Returns:
- Whether output is allowed
-
getOnChange
Gets the onchange consumer- Returns:
- The onchange consumer
-