Skip to main content

Module core

Module core 

Source
Expand description

Core types and handles.

Modules§

entity_flags
What kind of entity something is, as a bit set (EntityInfo::flags).

Structs§

BlockArea
The blocks between min and max (what isn’t loaded reads as bedrock): a palette and an index into it per block, x fastest, then z, then y.
BlockHit
A block a ray stopped at.
BlockInfo
A block’s properties (block::Info).
BlockKind
One kind of block in a BlockArea: how it is to walk through.
BlockPos
A block position in the world.
BlockPosView
BlockPos viewed in a frame: strings borrowed, packed numbers read in place.
EntityInfo
A loaded entity (entity::Info).
LocalState
This client’s player: where it is and looks, how it moves and fares.
NearbyEntity
An entity near this client’s player.
PlacedBlock
A block found in the world: where, and its state.
PlayerInfo
An online player’s state (player::Info).
Point
A point in a world (blocks, fractional).
PointView
Point viewed in a frame: strings borrowed, packed numbers read in place.
Rotation
Which way an entity faces, in degrees.
ScreenSlot
A slot of an open inventory screen: what it holds, where it’s drawn (GUI pixels from the screen’s corner).
SlotStack
A stack in an inventory slot.
Stack
A stack of items: what it is, how many, its data (SNBT).

Enums§

ClickMode
How a container slot is clicked: the game’s own modes (ClickType).
Face
The six block faces, in Minecraft’s Direction order, named as yog_ids::direction names them (a test holds them to it).

Functions§

join_state
A block state from its id and properties: split_state’s inverse.
split_state
A block state ("ns:id[k=v,...]") as its id and its properties.