Crate azalea_core
source ·Expand description
Azalea Core
Random miscellaneous things like bitsets
and Vec3
that don’t deserve their own crate.
Structs
- A rectangular prism with a starting and ending point.
- Represents Java’s BitSet, a list of bits.
- 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 list of bits with a known fixed size.
- A block pos with an attached world
- Rust doesn’t let us
impl McBufReadable for Option<GameType>
so we have to make a new type :( - Only works for up to 8 blocks
- Used to represent an exact position in the world where an entity could be. For blocks,
BlockPos
is used instead.
Enums
- A Minecraft gamemode, like survival or creative.