de.placeblock.betterinventories.gui.impl.AnvilGUI 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 net.kyori.adventure.text.TextComponent;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.java.JavaPlugin;
/**
* AnvilGUIs are standard BaseAnvilGUIs with basic functionality.
*/
@SuppressWarnings("unused")
public class AnvilGUI extends BaseAnvilGUI {
/**
* Creates a new AnvilGUI
*
* @param plugin The plugin
* @param title The title of the GUI
* @param removeItems Whether to remove loose items on close.
* The first player that closes the gui gets the items
*/
protected AnvilGUI(Plugin plugin, TextComponent title, boolean removeItems) {
super(plugin, title, removeItems);
}
/**
* Builder for AnvilGUIs
* @param The plugin that uses the builder
*/
@SuppressWarnings("unused")
public static class Builder
extends AbstractBuilder, AnvilGUI, P> {
/**
* Creates a new Builder
* @param plugin The plugin that uses the builder
*/
public Builder(P plugin) {
super(plugin);
}
@Override
public AnvilGUI build() {
return new AnvilGUI(this.getPlugin(), this.getTitle(), this.isRemoveItems());
}
@Override
protected Builder self() {
return this;
}
}
}