public class ItemUseBypass extends Object implements BypassChecker
Modifier and Type | Class and Description |
---|---|
static class |
ItemUseBypass.WhenBypass |
Modifier and Type | Field and Description |
---|---|
static List<ItemUseBypass> |
CLICK_BYPASS |
Constructor and Description |
---|
ItemUseBypass(String itemName,
String cheats,
String when) |
Modifier and Type | Method and Description |
---|---|
Set<CheatKeys> |
getCheats() |
String |
getItem() |
ItemUseBypass.WhenBypass |
getWhen() |
boolean |
hasBypass(Player p,
Cheat c)
Checker if the player has bypass
|
static boolean |
hasBypassWithClick(Player p,
Cheat c,
ItemStack item,
String actionName) |
boolean |
isForThisCheat(Cheat c) |
public static final List<ItemUseBypass> CLICK_BYPASS
public static boolean hasBypassWithClick(Player p, Cheat c, ItemStack item, String actionName)
public boolean isForThisCheat(Cheat c)
public String getItem()
public ItemUseBypass.WhenBypass getWhen()
public boolean hasBypass(Player p, Cheat c)
BypassChecker
hasBypass
in interface BypassChecker
p
- the player which we are looking for bypassc
- the cheat that we are checking