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

de.placeblock.betterinventories.gui.impl.AnvilGUI Maven / Gradle / Ivy

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





© 2015 - 2024 Weber Informatics LLC | Privacy Policy