[This is preliminary documentation and is subject to change.]

[Missing <summary> documentation for "T:fCraft.Map"]

Namespace: fCraft
Assembly: fCraft (in fCraft.dll) Version: 0.6.2.4 (0.6.2.4)

Syntax

   
 C# 
public sealed class Map

Members

               
 All Members  Constructors   Fields   Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
Map(World, Int32, Int32, Int32, Boolean)
Creates an empty new map of given dimensions. Dimensions cannot be changed after creation.
Blocks
Array of map blocks. Use Index(x,y,h) to convert coordinates to array indices. Use QueueUpdate() for working on live maps to ensure that all players get updated.
Bounds
Map boundaries. Can be useful for calculating volume or interesections.
CalculateShadows()()()()
ClearUpdateQueue()()()()
Clears all pending updates.
ConvertBlockTypes(array<Byte>[]()[][])
Converts nonstandard (50-255) blocks using the given mapping.
DateCreated
DateModified
DrawQueueBlockCount
DrawQueueLength
Equals(Object)
Determines whether the specified Object is equal to the current 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.)
Guid
HasChangedSinceSave
Whether the map was modified since last time it was saved.
Height
Map height, in blocks. Equivalent to Notch's Y (vertical).
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.
Length
Map length, in blocks. Equivalent to Notch's Z (horizontal).
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.)
Metadata
Map metadata, excluding zones.
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).
SaveFormat
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.
Shadows
Spawn
StopAllDrawOps()()()()
ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
UpdateQueueLength
Number of blocks that are waiting to be processed.
ValidateHeader()()()()
Volume
Map volume, in terms of blocks.
Width
Map width, in blocks. Equivalent to Notch's X (horizontal).
World
The world associated with this map, if any. May be null.
Zones
All zones within a map.

Inheritance Hierarchy

System..::..Object
  fCraft..::..Map

See Also