de.placeblock.betterinventories.builder.gui.BaseCanvasGUIBuilder Maven / Gradle / Ivy
Show all versions of BetterInventories Show documentation
package de.placeblock.betterinventories.builder.gui;
import de.placeblock.betterinventories.content.pane.GUIPane;
import de.placeblock.betterinventories.gui.impl.BaseCanvasGUI;
import org.bukkit.plugin.Plugin;
/**
* Base class for creating CanvasGUI-Builders
* @param The main canvas type
* @param The GUI type
* @param The Builder type
*/
@SuppressWarnings({"unused", "unchecked"})
public abstract class BaseCanvasGUIBuilder, B extends BaseCanvasGUIBuilder
> extends BaseGUIBuilder {
/**
* The height of the GUI
*/
protected Integer height;
/**
* Creates a new BaseCanvasGUIBuilder
* @param plugin The plugin for the GUI
*/
public BaseCanvasGUIBuilder(Plugin plugin) {
super(plugin);
}
/**
* Sets the height of the inventory
* @param height The height
* @return this
*/
public B height(int height) {
this.height = height;
return (B) this;
}
/**
* @return The height of the GUI
*/
protected Integer getHeight() {
return this.height;
}
}