Property | Type | Description | |
---|---|---|---|
Blocks | byte[] | ||
Bounds | |||
DoorID | int | ||
Doors | System.Collections.ArrayList | ||
Height | int | ||
Length | int | ||
MessageBlockID | int | ||
MessageBlocks | System.Collections.ArrayList | ||
Portals | System.Collections.ArrayList | ||
Shadows | ].short[ | ||
Volume | int | ||
Width | int | ||
portalID | int |
Property | Type | Description | |
---|---|---|---|
DefineFallbackBlocks | void | ||
GetEdgeTexture | string | ||
Map | System | ||
OnMetaOrZoneChange | void | ||
ProcessDrawOps | int | ||
ProcessUpdates | void | ||
QueueDrawOp | void |
Method | Description | |
---|---|---|
CalculateShadows ( ) : void | ||
ClearUpdateQueue ( ) : void |
Clears all pending updates.
|
|
ConvertBlockTypes ( [ mapping ) : bool |
Converts nonstandard (50-255) blocks using the given mapping.
|
|
GetBlock ( Vector3I coords ) : Block |
Gets a block at given coordinates. Checks bounds.
|
|
GetBlock ( int x, int y, int z ) : Block |
Gets a block at given coordinates. Checks bounds.
|
|
GetBlockByName ( [ blockName ) : Block |
Tries to find a blocktype by name.
|
|
GetCompressedCopy ( [ stream, bool prependBlockCount ) : void |
Writes a copy of the current map to a given stream, compressed with GZipStream.
|
|
GetFallbackBlock ( Block block ) : Block | ||
GetFallbackMap ( ) : byte[] | ||
InBounds ( Vector3I vec ) : bool |
Checks whether the given coordinate (in block units) is within the bounds of the map.
|
|
InBounds ( int x, int y, int z ) : bool |
Checks whether the given coordinate (in block units) is within the bounds of the map.
|
|
Index ( Vector3I coords ) : int |
Converts given coordinates to a block array index.
|
|
Index ( int x, int y, int z ) : int |
Converts given coordinates to a block array index.
|
|
IsRecommendedDimension ( int dimension ) : bool |
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 ( int dimension ) : bool |
Checks if a given map dimension (width, height, or length) is acceptible. Values between 1 and 2047 are technically allowed.
|
|
MakeFloodBarrier ( ) : void |
Makes an admincrete barrier, 1 block thick, around the lower half of the map.
|
|
Map ( |
Creates an empty new map of given dimensions. Dimensions cannot be changed after creation.
|
|
QueueUpdate ( |
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 ( ) : bool |
Replaces all nonstandard (50-255) blocks with air.
|
|
ResetSpawn ( ) : void |
Resets the spawn to a valid Java 7 location (X, Y, and found Z) Old behaviour: Resets spawn to the default location (top center of the map).
|
|
Save ( [ fileName ) : bool |
Saves this map to a file in the default format (FCMv3).
|
|
SearchColumn ( int x, int y, Block id ) : int | ||
SearchColumn ( int x, int y, Block id, int zStart ) : int | ||
SetBlock ( Vector3I coords, Block type ) : void |
Sets a block at given coordinates. Checks bounds.
|
|
SetBlock ( int x, int y, int z, Block type ) : void |
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 ( ) : void | ||
ValidateHeader ( ) : bool |
Method | Description | |
---|---|---|
DefineFallbackBlocks ( ) : void | ||
GetEdgeTexture ( Block block ) : string | ||
Map ( ) : System | ||
OnMetaOrZoneChange ( object sender, |
||
ProcessDrawOps ( int maxTotalUpdates ) : int | ||
ProcessUpdates ( ) : void | ||
QueueDrawOp ( [ op ) : void |
public ConvertBlockTypes ( [ mapping ) : bool | ||
mapping | [ | Byte array of length 256. |
return | bool |
public GetBlock ( Vector3I coords ) : Block | ||
coords | Vector3I | Coordinate vector (X,Y,Z). |
return | Block |
public GetBlock ( int x, int y, int z ) : Block | ||
x | int | X coordinate (width). |
y | int | Y coordinate (length, Notch's Z). |
z | int | Z coordinate (height, Notch's Y). |
return | Block |
public static GetBlockByName ( [ blockName ) : Block | ||
blockName | [ | Name of the block. |
return | Block |
public GetCompressedCopy ( [ stream, bool prependBlockCount ) : void | ||
stream | [ | Stream to write the compressed data to. |
prependBlockCount | bool | If true, prepends block data with signed, 32bit, big-endian block count. |
return | void |
public static GetFallbackBlock ( Block block ) : Block | ||
block | Block | |
return | Block |
public InBounds ( Vector3I vec ) : bool | ||
vec | Vector3I | Coordinate vector (X,Y,Z). |
return | bool |
public InBounds ( int x, int y, int z ) : bool | ||
x | int | X coordinate (width). |
y | int | Y coordinate (length, Notch's Z). |
z | int | Z coordinate (height, Notch's Y). |
return | bool |
public Index ( Vector3I coords ) : int | ||
coords | Vector3I | Coordinate vector (X,Y,Z). |
return | int |
public Index ( int x, int y, int z ) : int | ||
x | int | X coordinate (width). |
y | int | Y coordinate (length, Notch's Z). |
z | int | Z coordinate (height, Notch's Y). |
return | int |
public static IsRecommendedDimension ( int dimension ) : bool | ||
dimension | int | |
return | bool |
public static IsValidDimension ( int dimension ) : bool | ||
dimension | int | |
return | bool |
public Map ( |
||
world | World that owns this map. May be null, and may be changed later. | |
width | int | Width (horizontal, Notch's X). |
length | int | Length (horizontal, Notch's Z). |
height | int | Height (vertical, Notch's Y). |
initBlockArray | bool | If true, the Blocks array will be created. |
return | System |
public QueueUpdate ( |
||
update | ||
return | void |
public SearchColumn ( int x, int y, Block id ) : int | ||
x | int | |
y | int | |
id | Block | |
return | int |
public SearchColumn ( int x, int y, Block id, int zStart ) : int | ||
x | int | |
y | int | |
id | Block | |
zStart | int | |
return | int |
public SetBlock ( Vector3I coords, Block type ) : void | ||
coords | Vector3I | Coordinate vector (X,Y,Z). |
type | Block | Block type to set. |
return | void |
public SetBlock ( int x, int y, int z, Block type ) : void | ||
x | int | X coordinate (width). |
y | int | Y coordinate (length, Notch's Z). |
z | int | Z coordinate (height, Notch's Y). |
type | Block | Block type to set. |
return | void |
public System.Collections.ArrayList Doors | ||
return | System.Collections.ArrayList |
public System.Collections.ArrayList MessageBlocks | ||
return | System.Collections.ArrayList |
public System.Collections.ArrayList Portals | ||
return | System.Collections.ArrayList |