From 8a83b21e69085067798d124755f949725bd9b76f Mon Sep 17 00:00:00 2001 From: MineExplorer Date: Sat, 19 Apr 2025 19:28:21 +0300 Subject: [PATCH 1/3] fix type in TileEntityPrototype.containerEvents --- api/core-engine/TileEntity.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }; /** From 407edbf9102d21cedc6d38bff8ef6a3b29ea1a06 Mon Sep 17 00:00:00 2001 From: MineExplorer Date: Sat, 19 Apr 2025 19:34:24 +0300 Subject: [PATCH 2/3] add Recipes.provideRecipeForPlayer method --- api/core-engine/Recipes.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/api/core-engine/Recipes.d.ts b/api/core-engine/Recipes.d.ts index 5aacace1f6..a739551e32 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, player: number): Nullable; + /** * Adds new furnace recipe. * @param sourceId source item ID From 04e37cf9d5ef0e682e4e73b4fcb4b387fe973859 Mon Sep 17 00:00:00 2001 From: MaXFeeD Date: Sat, 19 Apr 2025 19:55:50 +0300 Subject: [PATCH 3/3] player -> playerUid to match standarts --- api/core-engine/Recipes.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core-engine/Recipes.d.ts b/api/core-engine/Recipes.d.ts index a739551e32..70d59e4bb1 100644 --- a/api/core-engine/Recipes.d.ts +++ b/api/core-engine/Recipes.d.ts @@ -152,7 +152,7 @@ declare namespace Recipes { * @param prefix recipe prefix, defaults to empty string (vanilla workbench) * @param player player uid */ - function provideRecipeForPlayer(field: WorkbenchField, prefix: string, player: number): Nullable; + function provideRecipeForPlayer(field: WorkbenchField, prefix: string, playerUid: number): Nullable; /** * Adds new furnace recipe.