BlockPos¶
-
class BlockPos
¶ -
-
BlockPos
(Int32 x, Int32 y, Int32 z, ChunkPos chunkPos = ChunkPos.zero)¶ Creates a new
BlockPos
using explicit x, y, and z coordinates inside a ChunkPos.
-
Int32
Mod
(Int32 x, Int32 m)¶ The default C# modulus operator % returns negative numbers for negative input, which is undesirable.
-
void
Correct
()¶ This corrects overflown coordinates, appropriately shifting chunkPos and clamping x, y, and z.
-