diff --git a/src/de/steamwar/inventory/SWInventory.java b/src/de/steamwar/inventory/SWInventory.java index 02b3d66..a9f05b8 100644 --- a/src/de/steamwar/inventory/SWInventory.java +++ b/src/de/steamwar/inventory/SWInventory.java @@ -66,6 +66,10 @@ public class SWInventory implements Listener, Inventory { setItem(pos, item); } + public void setCallback(int pos, InvCallback c){ + callbacks.put(pos, c); + } + public void open(){ player.openInventory(this); }