Class BaseIOGUIPane.Builder<B extends BaseIOGUIPane.Builder<B,P>,P extends BaseIOGUIPane<P>>

Type Parameters:
B - The Builder that implements this one
P - 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 Details

    • Builder

      public Builder(GUI gui)
      Creates a new Builder
      Parameters:
      gui - The GUI this Pane belongs to
  • Method Details

    • input

      public B input(boolean input)
      Sets the input attribute
      Parameters:
      input - Whether to accept new items
      Returns:
      Itself
    • output

      public B output(boolean output)
      Sets the output attribute
      Parameters:
      output - Whether to allow the player to remove items
      Returns:
      Itself
    • onChange

      public B onChange(BiConsumer<Vector2d,org.bukkit.inventory.ItemStack> 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

      protected BiConsumer<Vector2d,org.bukkit.inventory.ItemStack> getOnChange()
      Gets the onchange consumer
      Returns:
      The onchange consumer