diff --git a/SpigotCore_Main/src/de/steamwar/inventory/SWInventory.java b/SpigotCore_Main/src/de/steamwar/inventory/SWInventory.java index 731eb03..6862697 100644 --- a/SpigotCore_Main/src/de/steamwar/inventory/SWInventory.java +++ b/SpigotCore_Main/src/de/steamwar/inventory/SWInventory.java @@ -97,31 +97,31 @@ public class SWInventory implements Listener { callbacks.put(pos, inventoryClickEvent -> c.clicked(inventoryClickEvent.getClick())); } - public void setItem(int pos, ItemStack itemStack, Consumer c) { + public void setItemEvent(int pos, ItemStack itemStack, Consumer c) { inventory.setItem(pos, itemStack); callbacks.put(pos, c); } - public void setItem(int pos, Material m, String name, Consumer c) { - setItem(pos, m, name, new ArrayList<>(), false, c); + public void setItemEvent(int pos, Material m, String name, Consumer c) { + setItemEvent(pos, m, name, new ArrayList<>(), false, c); } - public void setItem(int pos, Material m, byte meta, String name, Consumer c) { - setItem(pos, m, meta, name, new ArrayList<>(), false, c); + public void setItemEvent(int pos, Material m, byte meta, String name, Consumer c) { + setItemEvent(pos, m, meta, name, new ArrayList<>(), false, c); } - public void setItem(int pos, Material m, String name, List lore, boolean e, Consumer c) { - setItem(pos, m, (byte) 0, name, lore, e, c); + public void setItemEvent(int pos, Material m, String name, List lore, boolean e, Consumer c) { + setItemEvent(pos, m, (byte) 0, name, lore, e, c); } - public void setItem(int pos, Material m, byte meta, String name, List lore, boolean e, Consumer c) { + public void setItemEvent(int pos, Material m, byte meta, String name, List lore, boolean e, Consumer c) { SWItem item = new SWItem(m, meta, name, lore, e, click -> { }); setItem(pos, item); - setCallback(pos, c); + setEventCallback(pos, c); } - public void setCallback(int pos, Consumer c) { + public void setEventCallback(int pos, Consumer c) { callbacks.put(pos, c); }