Class GUISection.AbstractBuilder<B extends GUISection.AbstractBuilder<B,P>,P extends GUISection>
java.lang.Object
de.placeblock.betterinventories.Builder<B,P>
de.placeblock.betterinventories.content.GUISection.AbstractBuilder<B,P>
- Type Parameters:
B- The Builder that implements this oneP- The Product that is built
- Direct Known Subclasses:
BaseSimpleGUIPane.AbstractBuilder,GUIItem.AbstractBuilder,GUIPane.AbstractBuilder
- Enclosing class:
- GUISection
public abstract static class GUISection.AbstractBuilder<B extends GUISection.AbstractBuilder<B,P>,P extends GUISection>
extends Builder<B,P>
Builder for creating various
GUISection-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadoptMinMax(Sizeable sizeable) Adops the min and max size from anotherSizeablee.g.protected Vector2dUsed to get the current maximum size.protected Vector2dUsed to get the current minimum size.maxSize(int x, int y) Sets the maxSize attributeSets the maxSize attributeminSize(int x, int y) Sets the minSize attributeSets the minSize attributesize(int x, int y) Sets the size attributeSets the size attribute
-
Constructor Details
-
AbstractBuilder
public AbstractBuilder()
-
-
Method Details
-
adoptMinMax
- Parameters:
sizeable- The sizeable to adopt the size from- Returns:
- Itself
-
size
Sets the size attribute- Parameters:
size- The sizeable to adopt the size from- Returns:
- Itself
-
size
Sets the size attribute- Parameters:
x- The x part of the new sizey- The y part of the new size- Returns:
- Itself
-
minSize
Sets the minSize attribute- Parameters:
minSize- The minimum size of the section- Returns:
- Itself
-
minSize
Sets the minSize attribute- Parameters:
x- The x part of the new minSizey- The y part of the new minSize- Returns:
- Itself
-
maxSize
Sets the maxSize attribute- Parameters:
maxSize- The maximum size of the section- Returns:
- Itself
-
maxSize
Sets the maxSize attribute- Parameters:
x- The x part of the new maxSizey- The y part of the new maxSize- Returns:
- Itself
-
getMinSize
Used to get the current minimum size. Throws an exception if min-size and size are null- Returns:
- The current minSize
-
getMaxSize
Used to get the current maximum size. Throws an exception if max-size and size are null- Returns:
- The current maxSize
-