Module position

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§

BlockPos
The coordinates of a block in the world.
ChunkBiomePos
The coordinates of a biome inside a chunk.
ChunkBlockPos
The coordinates of a block inside a chunk.
ChunkPos
Chunk coordinates are used to represent where a chunk is in the world.
ChunkSectionBiomePos
The coordinates of a biome inside of a chunk section.
ChunkSectionBlockPos
The coordinates of a block inside of a chunk section.
ChunkSectionPos
The coordinates of a chunk section in the world.
GlobalPos
A block pos with an attached world
Vec2
A 2D vector.
Vec3
Used to represent an exact position in the world where an entity could be.
Vec3f32
A lower precision Vec3, used for some fields in entity metadata.
Vec3i
Similar to BlockPos but it’s serialized as 3 varints instead of one 64-bit integer, so it can represent a bigger range of numbers.