![JAR search and dependency download from the Maven repository](/logo.png)
de.placeblock.betterinventories.gui.impl.AnvilGUI Maven / Gradle / Ivy
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.
*/
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
*/
@Deprecated(forRemoval = true)
public AnvilGUI(Plugin plugin, TextComponent title, boolean removeItems) {
super(plugin, title, removeItems);
}
/**
* Builder for AnvilGUIs
* @param The plugin that uses the builder
*/
public static class Builder
extends BaseAnvilGUI.Builder, 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;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy