package com.volmit.iris.util.inventory; import org.bukkit.inventory.ItemStack; import com.volmit.iris.util.KList; public interface Element { public MaterialBlock getMaterial(); public Element setMaterial(MaterialBlock b); public boolean isEnchanted(); public Element setEnchanted(boolean enchanted); public String getId(); public String getName(); public Element setProgress(double progress); public double getProgress(); public short getEffectiveDurability(); public Element setCount(int c); public int getCount(); public ItemStack computeItemStack(); public Element setBackground(boolean bg); public boolean isBackgrond(); public Element setName(String name); public Element addLore(String loreLine); public KList getLore(); public Element call(ElementEvent event, Element context); public Element onLeftClick(Callback clicked); public Element onRightClick(Callback clicked); public Element onShiftLeftClick(Callback clicked); public Element onShiftRightClick(Callback clicked); public Element onDraggedInto(Callback into); public Element onOtherDraggedInto(Callback other); }