azalea_core

Module position

Source
Expand description

Representations of positions of various things in Minecraft.

The most common ones are Vec3 and BlockPos, which are usually used for entity positions and block positions, respectively.

Structsยง

  • The coordinates of a block in the world. For entities (if the coordinate with decimals), use Vec3 instead.
  • The coordinates of a block inside a chunk.
  • Chunk coordinates are used to represent where a chunk is in the world. You can convert the x and z to block coordinates by multiplying them by 16.
  • The coordinates of a block inside a chunk section. Each coordinate must be in the range [0, 15].
  • The coordinates of a chunk section in the world.
  • A block pos with an attached world
  • Used to represent an exact position in the world where an entity could be. For blocks, BlockPos is used instead.