externalStorage
Hierarchy
- StorageDescriptor
- _Storage
- Storage
Implemented by
Index
Properties
Methods
Properties
externalcontainer
externalisNativeContainer
externalreadonlylength
Returns the number of key/value pairs.
externaloptionalliquidUnitRatio
externaloptionalslots
Type declaration
[key string]: SlotData
Methods
externaladdItem
Parameters
externalitem: ItemInstance
externaloptionalside: number
externaloptionalmaxCount: number
Returns number
externaladdItemToSlot
Parameters
externalname: string | number
externalitem: ItemInstance
externaloptionalmaxCount: number
Returns number
externaloptionalcanReceiveLiquid
Parameters
externalliquid: string
externalside: number
Returns boolean
externaloptionalcanTransportLiquid
Parameters
externalliquid: string
externalside: number
Returns boolean
externalclear
Removes all key/value pairs, if there are any.
Returns void
externalclearContainer
Returns void
externaloptionalextractLiquid
Parameters
externalliquidStorage: ILiquidStorage
externalliquid: string
externalamount: number
Returns number
externalgetContainerSlots
Returns string[] | number[]
externalgetInputSlots
Parameters
externaloptionalside: number
Returns string[] | number[]
externaloptionalgetInputTank
Parameters
externalside: number
Returns ILiquidStorage
externalgetItem
Returns the current value associated with the given key, or null if the given key does not exist.
Parameters
externalkey: string
Returns string
externalgetOutputSlots
Parameters
externaloptionalside: number
Returns string[] | number[]
externaloptionalgetOutputTank
Parameters
externalside: number
Returns ILiquidStorage
externalgetReceivingItemCount
Parameters
externalitem: ItemInstance
externaloptionalside: number
Returns number
externalgetSlot
Parameters
externalname: string | number
Returns ItemInstance
externaloptionalisValidInput
Parameters
externalitem: ItemInstance
externalside: number
externaltileEntity: TileEntity
Returns boolean
externalkey
Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs.
Parameters
externalindex: number
Returns string
externaloptionalreceiveLiquid
Parameters
externalliquidStorage: ILiquidStorage
externalliquid: string
externalamount: number
Returns number
externalremoveItem
Removes the key/value pair with the given key, if a key/value pair with the given key exists.
Parameters
externalkey: string
Returns void
externalsetItem
Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.
Throws a "QuotaExceededError" DOMException exception if the new value couldn't be set.
Parameters
externalkey: string
externalvalue: string
Returns void
externalsetSlot
Parameters
externalname: string | number
externalid: number
externalcount: number
externaldata: number
externaloptionalextra: ItemExtraData
Returns void
This Web Storage API interface provides access to a particular domain's session or local storage. It allows, for example, the addition, modification, or deletion of stored data items.
MDN Reference