From 8fbb16557cb1c2ad13163def2599eb066dec815a Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Wed, 25 Aug 2021 18:31:08 +0200 Subject: [PATCH] Backwards --- .../de/steamwar/inventory/SWInventory.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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); }