McGUI Class Utils
Some cool methods of McGUI class
The first method that you have to know is the openInventoryTo(); This method is used to open the GUI on a player. Let's do an example:
gui.openInventoryTo(Bukkit.getPlayerExact("LoRy24TV"));
Another interesting feature is the fillBlanksWith(); method. With that, you can replace all the empty slots with a custom block that can have a custom name. Here is how to do it:
gui.fillBlanksWith(Material.MATERIAL, "§fName");
The method that you're going to see right now is the createButton(); method. In this paragraph, you're going to see only the syntax because the real usage is written in the next pages. So, here is an example of its syntax:
gui.createButton(guiItem, index, guiButtonEventsObject);
And another important method is the createAnimatedButton(); You're going to use that when you want to add an animated button to your GUI. here is the syntax:
gui.createAnimatedButton(guiAnimatedItem, index, guiButtonEventsObject);
Last updated
Was this helpful?