# McGUI Class Utils

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:

```java
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:

```java
gui.fillBlanksWith(Material.MATERIAL, "§fName");
```

&#x20;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:

```java
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:

```java
gui.createAnimatedButton(guiAnimatedItem, index, guiButtonEventsObject);
```
