diff --git a/api/core-engine/Recipes.d.ts b/api/core-engine/Recipes.d.ts index 5aacace1f6..70d59e4bb1 100644 --- a/api/core-engine/Recipes.d.ts +++ b/api/core-engine/Recipes.d.ts @@ -145,6 +145,15 @@ declare namespace Recipes { */ function provideRecipe(field: WorkbenchField, prefix?: string): Nullable; + /** + * Performs crafting by the field contents and recipe prefix for a player. + * @param field {@link Recipes.WorkbenchField WorkbenchField} object containing crafting field + * information + * @param prefix recipe prefix, defaults to empty string (vanilla workbench) + * @param player player uid + */ + function provideRecipeForPlayer(field: WorkbenchField, prefix: string, playerUid: number): Nullable; + /** * Adds new furnace recipe. * @param sourceId source item ID diff --git a/api/core-engine/TileEntity.d.ts b/api/core-engine/TileEntity.d.ts index 5a028dadcf..5c72e9e216 100644 --- a/api/core-engine/TileEntity.d.ts +++ b/api/core-engine/TileEntity.d.ts @@ -200,7 +200,7 @@ declare namespace TileEntity { /** * Example of the server container event function. */ - [eventName: string]: (container: ItemContainer, window: UI.Window | UI.StandartWindow | UI.StandardWindow | UI.TabbedWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void; + [eventName: string]: (packetData: any, connectedClient: NetworkClient) => void; }; /**