public class MenuIcon extends Object
ItemStack
in an InventoryPanel
's inventory that
will execute code when clicked.Modifier and Type | Field and Description |
---|---|
protected org.bukkit.inventory.ItemStack |
item |
protected Execution |
onExec |
protected Map<String,Object> |
options |
protected List<String> |
perms |
protected static Random |
RAND |
protected long |
seed |
Modifier and Type | Method and Description |
---|---|
Object |
addOption(String key,
Object value) |
void |
addPermission(String permission) |
boolean |
equals(Object obj) |
org.bukkit.inventory.ItemStack |
getItem() |
Object |
getOption(String key) |
Map<String,Object> |
getOptions() |
int |
hashCode() |
boolean |
hasPermission(org.bukkit.entity.Player p) |
boolean |
requiresPerms() |
void |
setExecutable(Execution onExec) |
protected static final Random RAND
protected final long seed
protected final org.bukkit.inventory.ItemStack item
protected Execution onExec
public org.bukkit.inventory.ItemStack getItem()
public void setExecutable(Execution onExec)
public void addPermission(String permission)
public boolean requiresPerms()
public boolean hasPermission(org.bukkit.entity.Player p)
Copyright © 2015. All rights reserved.