Class: Registry
Properties
blocksById
• blocksById: Map
<number
, Block
>
blocksByName
• blocksByName: Map
<string
, Block
>
idMap
• idMap: Map
<number
, string
>
nameMap
• nameMap: Map
<string
, number
>
Methods
deserialize
▸ deserialize(data
): Registry
Parameters
Name | Type |
---|---|
data | any |
Returns
serialize
▸ serialize(): object
Returns
object