Skip to main content

Module types

Module types 

Source
Expand description

A module for common types.

Structs§

BlockPos
A block position.
BlockStateId
A raw block state id. Using the registry this id can be derived into a block and it’s current properties.
BoundingBox
An integer axis-aligned bounding box for structure pieces.
ChunkPos
A chunk position.
Identifier
An identifier used by Minecraft.
InvalidPackedSectionBlockPos
Error returned when a raw section-relative block position uses reserved bits.
PackedBlockPos
A block position in Minecraft’s packed protocol i64 layout.
PackedChunkLocalXZ
A block’s X/Z position packed relative to its containing chunk.
PackedChunkPos
A chunk position in Steel’s packed i64 layout.
PackedSectionBlockPos
A block position packed relative to its containing 16x16x16 section.
PackedSectionPos
A section position in Minecraft’s packed i64 layout.
SectionPos
A chunk section position (16x16x16 region).
Todo
A placeholder type for unimplemented component values. Unlike (), this is a distinct type that can have its own trait implementations.
UpdateFlags
Flags that control how a block update is processed.

Enums§

Difficulty
World difficulty level.
GameType
The game type.
InteractionHand
Represents the hand used for an interaction.