1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

[CI skip] Removed an unused class

This commit is contained in:
TheBusyBiscuit 2021-03-22 19:44:37 +01:00
parent e3171b37dc
commit 02f7135805

View File

@ -1,44 +0,0 @@
package io.github.thebusybiscuit.slimefun4.api.items;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import io.github.thebusybiscuit.slimefun4.api.player.PlayerProfile;
import me.mrCookieSlime.Slimefun.Objects.SlimefunItem.SlimefunItem;
public interface ItemRestriction {
/**
* This method represents a check.
* The returned boolean will decide whether to allow the action.
*
* @param profile
* The Player's profile
* @param p
* The Player itself
* @param item
* The SlimefunItem that the {@link ItemStack} represents
* @param itemstack
* The ItemStack that is being tested.
*
* @return Whether the action was allowed
*/
boolean isAllowed(PlayerProfile profile, Player p, SlimefunItem item, ItemStack itemstack);
/**
* This method is executed if an ItemRestriction took affect.
* Override it to send a message to the Player telling them they cannot
* use that item, or do something else in there.
*
* @param profile
* The Player's profile
* @param p
* The Player to warn
* @param item
* The SlimefunItem that the {@link ItemStack} represents
* @param itemstack
* The ItemStack that was prevented from being used
*/
void warnPlayer(PlayerProfile profile, Player p, SlimefunItem item, ItemStack itemstack);
}