mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-06 07:46:08 +00:00
GUI & Tasking utils
This commit is contained in:
55
src/main/java/com/volmit/iris/util/Element.java
Normal file
55
src/main/java/com/volmit/iris/util/Element.java
Normal file
@@ -0,0 +1,55 @@
|
||||
package com.volmit.iris.util;
|
||||
|
||||
import org.bukkit.block.data.BlockData;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public interface Element
|
||||
{
|
||||
public BlockData getMaterial();
|
||||
|
||||
public Element setMaterial(BlockData 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<String> getLore();
|
||||
|
||||
public Element call(ElementEvent event, Element context);
|
||||
|
||||
public Element onLeftClick(Callback<Element> clicked);
|
||||
|
||||
public Element onRightClick(Callback<Element> clicked);
|
||||
|
||||
public Element onShiftLeftClick(Callback<Element> clicked);
|
||||
|
||||
public Element onShiftRightClick(Callback<Element> clicked);
|
||||
|
||||
public Element onDraggedInto(Callback<Element> into);
|
||||
|
||||
public Element onOtherDraggedInto(Callback<Element> other);
|
||||
}
|
||||
Reference in New Issue
Block a user