Beta
The machine block.
The storage type ID.
The new value. Must be a non-negative integer.
Whether to call the onStorageSet event on the machine, if applicable.
Throws a PublicError of type PublicErrorType.InvalidObject if the block is not valid.
Throws a PublicError of type PublicErrorType.InvalidArgument if the new value is negative.
Throws a PublicError of type PublicErrorType.NotRegistered if the storage type does not exist, or if the block is not registered as a machine.
Throws a PublicError of type PublicErrorType.InvalidState if this package has not been initialized (see init).
Sets the storage of a specific type in a machine.