Hi, I'm making a plugin, but got stucked with the chest fill. I just want the code where it fills the chest with random items and blocks. Someone can help?
Oh yeah I got the wrong one. I was in a hurry Chest instanceof InventoryHolder. $chest->getInventory(). Refer to BaseInventory.PHP afterwards.
Use getInventory(). getRealInventory() is some tricks with double chests, you don't need to care about it.