#Getting CraftingInventory for Custom Crafting Table

1 messages · Page 1 of 1 (latest)

frigid summit
#

In order to gain access to the recipies I need a CraftingInventory object. how do I get it?

fervent oyster
#

Where do you need a CraftingInventory

#

It is not a part of the API, you should not need it

frigid summit
#

It is part of the API, I need it to use the setmatrix and getrecipe method

fervent oyster
#

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();
}

frigid summit