ChestLikeUI

ChestLikeUI

232 Downloads

Description

ChestLikeGUI is a multifunctional developer tool to create ingame chest looking GUIs with code, and also provides the opportunity of opening a GUI with right clicking a before set trigger-item.

How to use

- Put the plugin in your plugins folder

- Add Plugin to your Java build path

- Create a "new GUI( a Name, size (multiple of 9))"

- setItem allows you to set an Item of your GUI to a specific material and function (pos in GUI, Name, Material, ItemType, InventoryRunnable run, (runOpposite) when you want your Item to do a second or reversive thing when flipped off (ItemType.onoff))

- you can set runOpposite to null when you put in ItemType.neverchange because then it will always do the same when clicked

- the run method of InventoryRunnable holds the ingame Inventory the user clicked on when the run method got called

- removeItem allows to remove a before set Item from the GUI

- you can get the current and updated GUI/Inventory with getGUI()

- There are three Commands that will load with ChestlikeGUI:

settrigger (sets the Item you are currently holding to open a GUI with a certain name when right-clicked)

openinventory (opens a GUI with a certain name)

getinventorys (returns a list of all loaded GUIs)