package net.ME1312.SubServers.Client.Bukkit.Library;

public class NamedContainer<T, V> extends Container<V> {
    private T name;

    /**
     * Creates a TaggedContainer
     *
     * @param name Tag to Bind
     * @param item Object to Store
     */
    public NamedContainer(T name, V item) {
        super(item);
        this.name = name;
    }

    /**
     * Gets the name of the Container
     *
     * @return Container name
     */
    public T name() {
        return name;
    }

    /**
     * Renames the Container
     *
     * @param name New Container Name
     */
    public void rename(T name) {
        this.name = name;
    }
}
