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 TypeMethodDescriptioninput(boolean input) Sets the input attributeonChange(IOConsumer onChange) Sets the onChange attributeoutput(boolean output) Sets the output attributeremoveItemsOnInventoryClose(boolean remove) Sets the removeItemOnInventoryClose 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
-
removeItemsOnInventoryClose
Sets the removeItemOnInventoryClose attribute- Parameters:
remove- Whether the player receives items of this IOPane on inventory close- Returns:
- Itself
-
onChange
Sets the onChange attribute- Parameters:
onChange- Called when an item changes.BaseIOGUIPane.onItemChange(Vector2d, ItemStack)- Returns:
- Itself
-