Class CanvasGUI.Builder<P extends org.bukkit.plugin.java.JavaPlugin>

Type Parameters:
P - The Plugin that uses this builder
Enclosing class:
CanvasGUI

public static class CanvasGUI.Builder<P extends org.bukkit.plugin.java.JavaPlugin> extends BaseCanvasGUI.Builder<CanvasGUI.Builder<P>,CanvasGUI,SimpleGUIPane,P>
Builder used for creating CanvasGUIs
  • Constructor Details

    • Builder

      public Builder(P plugin)
      Creates a new Builder
      Parameters:
      plugin - The plugin that uses this builder
  • Method Details

    • type

      public CanvasGUI.Builder<P> type(org.bukkit.event.inventory.InventoryType type)
      Sets the type attribute. You can either specify the type or the height.
      Overrides:
      type in class GUI.Builder<CanvasGUI.Builder<P extends org.bukkit.plugin.java.JavaPlugin>,CanvasGUI,P extends org.bukkit.plugin.java.JavaPlugin>
      Parameters:
      type - The inventory type
      Returns:
      Itself
    • height

      public CanvasGUI.Builder<P> height(int height)
      Sets the height attribute. You can either specify the type or the height.
      Parameters:
      height - The inventory's height. Only used if type is CHEST
      Returns:
      Itself
    • build

      public CanvasGUI build()
      Description copied from class: Builder
      Builds the instance
      Specified by:
      build in class Builder<CanvasGUI.Builder<P extends org.bukkit.plugin.java.JavaPlugin>,CanvasGUI>
      Returns:
      The new instance
    • self

      protected CanvasGUI.Builder<P> self()
      Description copied from class: Builder
      Returns the Builder instance itself
      Specified by:
      self in class Builder<CanvasGUI.Builder<P extends org.bukkit.plugin.java.JavaPlugin>,CanvasGUI>
      Returns:
      the Builder instance itself