de.placeblock.betterinventories.builder.gui.ChestGUIBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of BetterInventories Show documentation
Show all versions of BetterInventories Show documentation
Easy to use and extensive InventoryAPI for Spigot
package de.placeblock.betterinventories.builder.gui;
import de.placeblock.betterinventories.content.pane.impl.simple.SimpleGUIPane;
import de.placeblock.betterinventories.gui.impl.ChestGUI;
import lombok.Getter;
import org.bukkit.plugin.Plugin;
/**
* Builder for ChestGUIs
*/
@Getter
@SuppressWarnings("unused")
public class ChestGUIBuilder extends BaseChestGUIBuilder {
/**
* Creates a new ChestGUIBuilder
* @param plugin The plugin for the GUI
*/
public ChestGUIBuilder(Plugin plugin) {
super(plugin);
}
/**
* Builds the ChestGUI
* @return The new ChestGUI
*/
@Override
public ChestGUI build() {
return new ChestGUI(this.getPlugin(), this.getTitle(), this.getBestMinHeight(), this.getBestMaxHeight());
}
}