Exemplo n.º 1
0
 public BlockPosition(ChunkPosition chunkPosition, LocalBlockPosition local, ChunkSize size)
     : this()
 {
     X = local.X + chunkPosition.ChunkX * size.X;
     Y = local.Y;
     Z = local.Z + chunkPosition.ChunkZ * size.Z;
 }
 public ChunkPositionDimension(ChunkPosition position, int dimension)
 {
     _dimension = dimension;
     _chunkX    = position.ChunkX;
     _chunkZ    = position.ChunkZ;
 }
Exemplo n.º 3
0
 public LocalBlockPosition(ChunkPosition chunk, BlockPosition position, ChunkSize chunkSize)
     : this(position.X - chunk.ChunkX * chunkSize.X, position.Y, position.Z - chunk.ChunkZ * chunkSize.Y)
 {
 }