LoneDev6 / API-ItemsAdder-Example-GUI

Example usage of ItemsAdder API to crete custom textured inventories in Spigot
5 stars 1 forks source link

How do I add an item to a gui created with TexturedInventoryWrapper #2

Closed Lfeier03 closed 1 year ago

Lfeier03 commented 1 year ago

How should I create a item for this gui

TexturedInventoryWrapper inventory = new TexturedInventoryWrapper(null, 54, ChatColor.BLACK + "Test", new FontImageWrapper("minecraft:cd01") ); //Is that right? It seems like a reaction. Inventory gui = inventory.getinventory gui.setTime(size , item) inventory.showInventory(player);

Lfeier03 commented 1 year ago

@LoneDev6

LoneDev6 commented 1 year ago

You should try before asking and waiting, it's pointless to wait for me. Avoid pinging. The API docs have everything you need.

https://github.com/LoneDev6/API-ItemsAdder/blob/e77eb2c17e03c82e7ba10290204d5b0a8447a352/src/main/java/dev/lone/itemsadder/api/FontImages/TexturedInventoryWrapper.java#L254

inventory.getInternal().setItem(index, item);