SteamWar/SpigotCore
Archiviert
13
0
Dieser Commit ist enthalten in:
Chaoscaot 2021-09-27 17:06:50 +02:00
Ursprung fa477c9db3
Commit e0a86269e0

Datei anzeigen

@ -68,6 +68,10 @@ public class SWInventory implements Listener {
callbacks.put(-1, inventoryClickEvent -> c.clicked(null)); callbacks.put(-1, inventoryClickEvent -> c.clicked(null));
} }
public void addCloseRunable(Runnable c) {
callbacks.put(-1, inventoryClickEvent -> c.run());
}
public void setItem(int pos, ItemStack itemStack, InvCallback c) { public void setItem(int pos, ItemStack itemStack, InvCallback c) {
inventory.setItem(pos, itemStack); inventory.setItem(pos, itemStack);
callbacks.put(pos, inventoryClickEvent -> c.clicked(inventoryClickEvent.getClick())); callbacks.put(pos, inventoryClickEvent -> c.clicked(inventoryClickEvent.getClick()));