Class CanvasGUI.Builder<P extends org.bukkit.plugin.java.JavaPlugin>
java.lang.Object
de.placeblock.betterinventories.Builder<B,G>
de.placeblock.betterinventories.gui.GUI.Builder<B,G,P>
de.placeblock.betterinventories.gui.impl.BaseCanvasGUI.AbstractBuilder<CanvasGUI.Builder<P>,CanvasGUI,SimpleGUIPane,P>
de.placeblock.betterinventories.gui.impl.CanvasGUI.Builder<P>
- 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.AbstractBuilder<CanvasGUI.Builder<P>,CanvasGUI,SimpleGUIPane,P>
Builder used for creating CanvasGUIs
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.placeblock.betterinventories.gui.GUI.Builder
removeItems, title
-
Constructor Details
-
Builder
Creates a new Builder- Parameters:
plugin- The plugin that uses this builder
-
-
Method Details
-
type
Sets the type attribute. You can either specify the type or the height.- Overrides:
typein classGUI.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
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
Description copied from class:BuilderBuilds the instance- Specified by:
buildin classBuilder<CanvasGUI.Builder<P extends org.bukkit.plugin.java.JavaPlugin>,CanvasGUI> - Returns:
- The new instance
-
self
Description copied from class:BuilderReturns the Builder instance itself- Specified by:
selfin classBuilder<CanvasGUI.Builder<P extends org.bukkit.plugin.java.JavaPlugin>,CanvasGUI> - Returns:
- the Builder instance itself
-