Hello everyone. I just can’t figure out how to create and use CustomInventory (I found it in core)
pSkateboard New Member Aug 10, 2019 #1 Hello everyone. I just can’t figure out how to create and use CustomInventory (I found it in core)
Denic Supporter Aug 17, 2019 #2 Don't quote me on this but I believe you can do something like the following using FakeInventories https://github.com/NukkitX/FakeInventories Code: ChestFakeInventory chest = new ChestFakeInventory(); chest.onOpen(player); You would set the contents in the constructor of the inventory using an InventryHolder object
Don't quote me on this but I believe you can do something like the following using FakeInventories https://github.com/NukkitX/FakeInventories Code: ChestFakeInventory chest = new ChestFakeInventory(); chest.onOpen(player); You would set the contents in the constructor of the inventory using an InventryHolder object