Class BaseGUIPaneBuilder<G extends GUIPane,B extends BaseGUIPaneBuilder<G,B>>
java.lang.Object
de.placeblock.betterinventories.builder.content.BaseGUISectionBuilder<G,B>
de.placeblock.betterinventories.builder.content.BaseGUIPaneBuilder<G,B>
- Type Parameters:
G- The GUIPane typeB- The Builder type
- All Implemented Interfaces:
Builder<G,B>
- Direct Known Subclasses:
HorizontalSplitGUIPaneBuilder,PaginatorBuilder,SimpleGUIPaneBuilder,SimpleItemGUIPaneBuilder
public abstract class BaseGUIPaneBuilder<G extends GUIPane,B extends BaseGUIPaneBuilder<G,B>>
extends BaseGUISectionBuilder<G,B>
Base class for creating GUIPane-Builders
-
Field Summary
Fields inherited from interface de.placeblock.betterinventories.builder.Builder
VALUE_MISSING_EXCEPTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadoptMinMax(GUIPane pane) Sets the min and mix size according to the min and max size of theGUIPaneprotected Vector2dprotected Vector2dmaxSize(int x, int y) Sets the maxSize of the pane.Sets the maximum size of the pane.minSize(int x, int y) Sets the minimum size of the pane.Sets the minimum size of the pane.Methods inherited from class de.placeblock.betterinventories.builder.content.BaseGUISectionBuilder
getGui, getSize, size
-
Constructor Details
-
BaseGUIPaneBuilder
Creates a new BaseGUIPaneBuilder- Parameters:
gui- The GUI for the Pane
-
-
Method Details
-
maxSize
Sets the maxSize of the pane. If no maxSize is set at build-time it will use minSize or Size- Parameters:
x- The maximum widthy- The maximum height- Returns:
- this
-
maxSize
Sets the maximum size of the pane. If no maximum size is set at build-time it will use the minimum size or size- Parameters:
maxSize- The maximum size- Returns:
- this
-
minSize
Sets the minimum size of the pane. If no minimum size is set at build-time it will use size or (1,1)- Parameters:
x- The minimum widthy- The minimum height- Returns:
- this
-
minSize
Sets the minimum size of the pane. If no minimum size is set at build-time it will use size or (1, 1)- Parameters:
minSize- The minmum size- Returns:
- this
-
adoptMinMax
Sets the min and mix size according to the min and max size of theGUIPane- Parameters:
pane- The GUIPane from which the size should be taken- Returns:
- this
-
getBestMaxSize
- Returns:
- The best maximum size (maxSize -> minSize -> size)
-
getBestMinSize
- Returns:
- The best minimum size (minSize -> size -> (1,1))
-