[This is preliminary documentation and is subject to change.]
The Map type exposes the following methods.
Methods
| Member | Description | |
|---|---|---|
| CalculateShadows()()()() | ||
| ClearUpdateQueue()()()() | Clears all pending updates. | |
| ConvertBlockTypes(array<Byte>[]()[][]) | Converts nonstandard (50-255) blocks using the given mapping. | |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetBlock(Vector3I) | Gets a block at given coordinates. Checks bounds. | |
| GetBlock(Int32, Int32, Int32) | Gets a block at given coordinates. Checks bounds. | |
| GetBlockByName(String) | Tries to find a blocktype by name. | |
| GetCompressedCopy(Stream, Boolean) | Writes a copy of the current map to a given stream, compressed with GZipStream. | |
| GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| InBounds(Vector3I) | Checks whether the given coordinate (in block units) is within the bounds of the map. | |
| InBounds(Int32, Int32, Int32) | Checks whether the given coordinate (in block units) is within the bounds of the map. | |
| Index(Vector3I) | Converts given coordinates to a block array index. | |
| Index(Int32, Int32, Int32) | Converts given coordinates to a block array index. | |
| IsRecommendedDimension(Int32) | Checks if a given map dimension (width, height, or length) is among the set of recommended values
Recommended values are: 16, 32, 64, 128, 256, 512, 1024 | |
| IsValidDimension(Int32) | Checks if a given map dimension (width, height, or length) is acceptable.
Values between 1 and 2047 are technically allowed. | |
| MakeFloodBarrier()()()() | Makes an admincrete barrier, 1 block thick, around the lower half of the map. | |
| MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| QueueUpdate(BlockUpdate) | Queues a new block update to be processed.
Due to concurrent nature of the server, there is no guarantee
that updates will be applied in any specific order. | |
| RemoveUnknownBlocktypes()()()() | Replaces all nonstandard (50-255) blocks with air. | |
| ResetSpawn()()()() | Resets spawn to the default location (top center of the map). | |
| Save(String) | Saves this map to a file in the default format (FCMv3). | |
| SearchColumn(Int32, Int32, Block) | ||
| SearchColumn(Int32, Int32, Block, Int32) | ||
| SetBlock(Vector3I, Block) | Sets a block at given coordinates. Checks bounds. | |
| SetBlock(Int32, Int32, Int32, Block) | Sets a block in a safe way.
Note that using SetBlock does not relay changes to players.
Use QueueUpdate() for changing blocks on live maps/worlds. | |
| StopAllDrawOps()()()() | ||
| ToString()()()() | (Inherited from Object.) | |
| ValidateHeader()()()() |