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

net.badbird5907.blib.menu.buttons.impl.BackButton Maven / Gradle / Ivy

There is a newer version: 2.1.11-REL
Show newest version
package net.badbird5907.blib.menu.buttons.impl;

import net.badbird5907.blib.menu.buttons.Button;
import net.badbird5907.blib.util.CC;
import net.badbird5907.blib.util.ItemBuilder;
import net.badbird5907.blib.util.XMaterial;
import org.bukkit.entity.Player;
import org.bukkit.event.inventory.ClickType;
import org.bukkit.inventory.ItemStack;

public abstract class BackButton extends Button {
    @Override
    public ItemStack getItem(Player player) {
        return new ItemBuilder(XMaterial.ARROW.parseItem()).name(CC.GREEN + "Back").build();
    }

    @Override
    public int getSlot() {
        return 39;
    }

    @Override
    public void onClick(Player player, int slot, ClickType clickType) {
        clicked(player, slot, clickType);
    }
    public abstract void clicked(Player player,int slot,ClickType clickType);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy