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§

BlockHit
A block a ray stopped at.
BlockInfo
A block’s properties, as Server::block_info sees them.
BlockPos
A block position in the world.
EntityInfo
A loaded entity, as Server::entity_info sees it.
NullServer
A Server that does nothing: every query comes back empty, every action reports failure. Enough to run mod logic that only needs a handle (yog bench benchmarks, unit tests). game_dir is where the mod’s storage goes — point it at a scratch directory.
PlayerInfo
An online player’s state, as Server::player_info sees it.

Enums§

Face
The six block faces, in Minecraft’s Direction order.

Traits§

Server
Low-level capabilities the Yog runtime exposes to mods (the engine contract).

Functions§

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