mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 02:36:59 +00:00
Loads o fix
This commit is contained in:
parent
8a2b69464f
commit
5ab2bae5d7
@ -1,4 +1,4 @@
|
||||
package com.volmit.iris.util;
|
||||
package com.volmit.iris.util.inventory;
|
||||
|
||||
/**
|
||||
* Callback for async workers
|
||||
|
@ -1,13 +1,14 @@
|
||||
package com.volmit.iris.util;
|
||||
package com.volmit.iris.util.inventory;
|
||||
|
||||
import org.bukkit.block.data.BlockData;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
import com.volmit.iris.util.KList;
|
||||
|
||||
public interface Element
|
||||
{
|
||||
public BlockData getMaterial();
|
||||
public MaterialBlock getMaterial();
|
||||
|
||||
public Element setMaterial(BlockData b);
|
||||
public Element setMaterial(MaterialBlock b);
|
||||
|
||||
public boolean isEnchanted();
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.volmit.iris.util;
|
||||
package com.volmit.iris.util.inventory;
|
||||
|
||||
/**
|
||||
* Element Event.
|
||||
|
@ -1,21 +0,0 @@
|
||||
package com.volmit.iris.util.inventory;
|
||||
|
||||
/**
|
||||
* Callback for async workers
|
||||
*
|
||||
* @author cyberpwn
|
||||
*
|
||||
* @param <T>
|
||||
* the type of object to be returned in the runnable
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface Callback<T>
|
||||
{
|
||||
/**
|
||||
* Called when the callback calls back...
|
||||
*
|
||||
* @param t
|
||||
* the object to be called back
|
||||
*/
|
||||
public void run(T t);
|
||||
}
|
@ -1,56 +0,0 @@
|
||||
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<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);
|
||||
}
|
@ -1,17 +0,0 @@
|
||||
package com.volmit.iris.util.inventory;
|
||||
|
||||
/**
|
||||
* Element Event.
|
||||
*
|
||||
* @author cyberpwn
|
||||
*
|
||||
*/
|
||||
public enum ElementEvent
|
||||
{
|
||||
LEFT,
|
||||
RIGHT,
|
||||
SHIFT_LEFT,
|
||||
SHIFT_RIGHT,
|
||||
DRAG_INTO,
|
||||
OTHER_DRAG_INTO;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user