Skip to main content
The Deno 2 Release Candidate is here
Learn more
method InventoryHelper.prototype.placeItemInInventory
Re-export
import { InventoryHelper } from "https://deno.land/x/sptaki@1.2.0/helpers/mod.ts";

Find a location to place an item into inventory and place it

Parameters

stashFS2D: number[][]

2-dimensional representation of the container slots

sortingTableFS2D: number[][]

2-dimensional representation of the sorting table slots

itemWithChildren: Item[]

Item to place

playerInventory: Inventory
useSortingTable: boolean

Should sorting table to be used if main stash has no space

output to send back to client