de.placeblock.betterinventories.gui.impl.ChestGUI 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.gui.impl;
import de.placeblock.betterinventories.builder.gui.ChestGUIBuilder;
import de.placeblock.betterinventories.content.pane.impl.simple.SimpleGUIPane;
import net.kyori.adventure.text.TextComponent;
import org.bukkit.plugin.Plugin;
/**
* Implementation of {@link BaseChestGUI} using SimpleGUIPane that auto resizes
*
* Builder: {@link ChestGUIBuilder}
*/
public class ChestGUI extends BaseChestGUI {
/**
* Creates a new ChestGUI
* @param plugin The plugin
* @param title The title of the GUI
* @param height The height of the GUI
*/
@SuppressWarnings("unused")
public ChestGUI(Plugin plugin, TextComponent title, int height) {
this(plugin, title, height, height);
}
/**
* Creates a new ChestGUI
* @param plugin The plugin
* @param title The title of the GUI
* @param minHeight The minimum height of the GUI
* @param maxHeight The maximum height of the GUI
*/
public ChestGUI(Plugin plugin, TextComponent title, int minHeight, int maxHeight) {
super(plugin, title, minHeight, maxHeight);
this.setCanvas(new SimpleGUIPane(this, this.getMinSize(), this.getMaxSize(), true));
}
}