Class BaseGUISectionBuilder<G extends GUISection,B extends BaseGUISectionBuilder<G,B>>

java.lang.Object
de.placeblock.betterinventories.builder.content.BaseGUISectionBuilder<G,B>
Type Parameters:
G - The GUISection type
B - The Builder type
All Implemented Interfaces:
Builder<G,B>
Direct Known Subclasses:
BaseGUIItemBuilder, BaseGUIPaneBuilder

public abstract class BaseGUISectionBuilder<G extends GUISection,B extends BaseGUISectionBuilder<G,B>> extends Object implements Builder<G,B>
Base class for creating GUISection-Builders
  • Constructor Details

    • BaseGUISectionBuilder

      public BaseGUISectionBuilder()
  • Method Details

    • size

      public B size(Vector2d size)
      Sets the size of the GUISection. Not needed in many implementations.
      Parameters:
      size - The size
      Returns:
      this
    • getSize

      protected Vector2d getSize()
      Returns:
      The size of the Section
    • getGui

      protected GUI getGui()
      Returns:
      The GUI for this Section