Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions api/core-engine/Recipes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,15 @@ declare namespace Recipes {
*/
function provideRecipe(field: WorkbenchField, prefix?: string): Nullable<ItemInstance>;

/**
* 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<ItemInstance>;

/**
* Adds new furnace recipe.
* @param sourceId source item ID
Expand Down
2 changes: 1 addition & 1 deletion api/core-engine/TileEntity.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

/**
Expand Down