All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.placeblock.betterinventories.builder.gui.BaseCanvasGUIBuilder Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
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; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy