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

com.tchristofferson.pagedinventories.handlers.PagedInventoryGlobalClickHandler Maven / Gradle / Ivy

Go to download

API for easily creating multi paged inventory GUIs in Spigot/Bukkit (Minecraft)

The newest version!
package com.tchristofferson.pagedinventories.handlers;

import com.tchristofferson.pagedinventories.IPagedInventory;
import org.bukkit.event.inventory.InventoryClickEvent;

public abstract class PagedInventoryGlobalClickHandler extends PagedInventoryClickHandler {

    public static class Handler extends PagedInventoryClickHandler.Handler {

        private final IPagedInventory iPagedInventory;

        public Handler(IPagedInventory iPagedInventory, InventoryClickEvent event) {
            super(event);
            this.iPagedInventory = iPagedInventory;
        }

        public IPagedInventory getPagedInventory() {
            return iPagedInventory;
        }

        @Override
        public boolean equals(Object obj) {
            return super.equals(obj)
                    && obj.getClass().equals(Handler.class)
                    && iPagedInventory.equals(((Handler) obj).iPagedInventory);
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy