sm.pipeGraph.getContainerShapeToSpendFrom

Returns a chest which allows for spending of specific item with a given quantity.

Kind: Function

Environments: Game

Game

sm.pipeGraph.getContainerShapeToSpendFrom( requester, item, quantities )

Open the full Game reference

Parameters:

Name Type Description
requester Shape The shape connected to the pipe graph who requests the information.
item Uuid The uuid of the target item.
quantities number The target spending amount.

Returns:

Name Type Description
container Shape The shape of the container which was the first one that allows spending.