Skip to main content

Module prelude

Module prelude 

Expand description

Every host trait of every area: bring it into scope to implement the game’s side or a test double.

Traits§

BlockEntitiesHost
The host’s methods both sides share of the block_entities area, implemented by the game and reached through Host.
BlockEntitiesServerHost
The server host’s methods of the block_entities area, implemented by the game and reached through ServerHost.
BlockEntityDrawContext
What a block entity, mob or player submit hook draws with, in blocks under a pose stack (PoseStack): one per hook call.
BlockStatesHost
The host’s methods both sides share of the block_states area, implemented by the game and reached through Host.
BlockStatesServerHost
The server host’s methods of the block_states area, implemented by the game and reached through ServerHost.
BossBarsServerHost
The server host’s methods of the boss_bars area, implemented by the game and reached through ServerHost.
CameraDrawContext
What block_screen_effect_draw draws with, one per hook call: quads in camera space, in blocks, with +x right, +y up and the camera at the origin looking down -z. It is the space of ScreenEffectRenderer’s own quads, whose whole-view quad has corners at (±1, ±1, -0.5), under the first-person hand’s projection. Quads draw in the order given, after the level and the hand and before the GUI, alpha-blended with no depth test; give corners in order round the quad.
ClientInputClientHost
The client host’s methods of the client_input area, implemented by the game and reached through crate::ClientHost.
ClientOptionsClientHost
The client host’s methods of the client_options area, implemented by the game and reached through crate::ClientHost.
ClientRenderClientHost
The client host’s methods of the client_render area, implemented by the game and reached through crate::ClientHost.
ClientSession
The client_session service, reached through its host.
ClientTextClientHost
Read-only component resolution and access to the client tooltip font.
ClientViewClientHost
The client host’s methods of the client_view area, implemented by the game and reached through crate::ClientHost.
ClientViewHost
The host’s methods both sides share of the client_view area, implemented by the game and reached through Host.
Commands
The commands service, reached through its host.
ConfigClientHost
The client host’s methods of the config area, implemented by the game and reached through crate::ClientHost.
ConfigHost
The host’s methods both sides share of the config area, implemented by the game and reached through Host.
ConfigServerHost
The server host’s methods of the config area, implemented by the game and reached through ServerHost.
DisplaysServerHost
The server host’s methods of the displays area, implemented by the game and reached through ServerHost.
DrawClientHost
The client host’s methods of the draw area, implemented by the game and reached through crate::ClientHost.
DrawContext
What the HUD, screen and tooltip hooks draw with, in GUI pixels: one per hook call.
EffectsClientHost
The client host’s methods of the effects area, implemented by the game and reached through crate::ClientHost.
EntitiesHost
The host’s methods both sides share of the entities area, implemented by the game and reached through Host.
EntitiesServerHost
The server host’s methods of the entities area, implemented by the game and reached through ServerHost.
InstanceGroups
Client-side persistent copies of resolved models.
ItemEntitiesHost
The host’s methods both sides share of the item_entities area, implemented by the game and reached through Host.
ItemParticlesClientHost
Item particle model resolution on the client.
ItemsClientHost
The client host’s methods of the items area, implemented by the game and reached through crate::ClientHost.
ItemsHost
The host’s methods both sides share of the items area, implemented by the game and reached through Host.
ItemsServerHost
The server host’s methods of the items area, implemented by the game and reached through ServerHost.
KeysHost
The host’s registry-wide key reads of the keys area, implemented by the game and reached through Host.
Levels
The levels service, reached through its host.
LevelsHost
The host’s methods both sides share of the levels area, implemented by the game and reached through Host.
LivingHost
The host’s methods both sides share of the living area, implemented by the game and reached through Host.
MenusClientHost
The client host’s methods of the menus area, implemented by the game and reached through crate::ClientHost.
MenusServerHost
The server host’s methods of the menus area, implemented by the game and reached through ServerHost.
MerchantsServerHost
The server host’s methods of the merchants area, implemented by the game and reached through ServerHost.
Messages
The messages service, reached through its host.
MinecartsServerHost
The server host’s methods of the minecarts area, implemented by the game and reached through ServerHost.
MobsHost
The host’s methods both sides share of the mobs area, implemented by the game and reached through Host.
MobsServerHost
The server host’s methods of the mobs area, implemented by the game and reached through ServerHost.
ModStateHost
The host’s methods both sides share of the mod_state area, implemented by the game and reached through Host.
ModStateServerHost
The server host’s methods of the mod_state area, implemented by the game and reached through ServerHost.
NetworkClientHost
The client host’s methods of the network area, implemented by the game and reached through crate::ClientHost.
NetworkServerHost
The server host’s methods of the network area, implemented by the game and reached through ServerHost.
Players
The players service, reached through its host.
PlayersClientHost
The client host’s methods of the players area, implemented by the game and reached through crate::ClientHost.
PlayersHost
The host’s methods both sides share of the players area, implemented by the game and reached through Host.
PlayersServerHost
The server host’s methods of the players area, implemented by the game and reached through ServerHost.
ProjectilesServerHost
The server host’s methods of the projectiles area, implemented by the game and reached through ServerHost.
RecipePropertiesHost
The host’s read-only mod recipe property membership service.
RecipesClientHost
The client host’s methods of the recipes area, implemented by the game and reached through crate::ClientHost.
RecipesHost
The host’s methods both sides share of the recipes area, implemented by the game and reached through Host.
RenderAssets
The render_assets service, reached through its host.
ResourcesHost
The host’s methods both sides share of the resources area, implemented by the game and reached through Host.
ScreensClientHost
The client host’s methods of the screens area, implemented by the game and reached through crate::ClientHost.
ServicesClientHost
The client host’s methods of the services area, implemented by the game and reached through crate::ClientHost.
ServicesServerHost
The server host’s methods of the services area, implemented by the game and reached through ServerHost.
TagsHost
The host’s methods both sides share of the tags area, implemented by the game and reached through Host.
WorldDrawContext
Per-view untextured geometry, cleared even without listeners; usage reports fixed setup-time limits shared across listeners and depth modes.
WorldEditServerHost
The server host’s methods of the world_edit area, implemented by the game and reached through ServerHost.