public interface ItemRestriction
Modifier and Type | Method and Description |
---|---|
boolean |
isAllowed(PlayerProfile profile,
Player p,
SlimefunItem item,
ItemStack itemstack)
This method represents a check.
|
void |
warnPlayer(PlayerProfile profile,
Player p,
SlimefunItem item,
ItemStack itemstack)
This method is executed if an ItemRestriction took affect.
|
boolean isAllowed(PlayerProfile profile, Player p, SlimefunItem item, ItemStack itemstack)
profile
- The Player's profilep
- The Player itselfitem
- The SlimefunItem that the ItemStack
representsitemstack
- The ItemStack that is being tested.void warnPlayer(PlayerProfile profile, Player p, SlimefunItem item, ItemStack itemstack)
profile
- The Player's profilep
- The Player to warnitem
- The SlimefunItem that the ItemStack
representsitemstack
- The ItemStack that was prevented from being used