From b3dc01bdb36aaf6476245edb4b5105db3bcbbce6 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 4 Jun 2019 17:24:26 +0200 Subject: [PATCH] add direct setCallback method --- src/de/steamwar/inventory/SWInventory.java | 4 ++++ 1 file changed, 4 insertions(+) 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); }