#Getting CraftingInventory for Custom Crafting Table
1 messages · Page 1 of 1 (latest)
Where do you need a CraftingInventory
It is not a part of the API, you should not need it
It is part of the API, I need it to use the setmatrix and getrecipe method
Ohh, I mixed that up with CraftInventory
It depends on the context. Do you want to get it from a player who currently has the workbench open?
I.e.
if (player.getOpenInventory() instanceof CraftingInventory) {
CraftingInventory inv = (CraftingInventory) player.getOpenInventory();
}
No. The player uses a custominventory