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§
- Block
Entities Host - The host’s methods both sides share of the
block_entitiesarea, implemented by the game and reached throughHost. - Block
Entities Server Host - The server host’s methods of the
block_entitiesarea, implemented by the game and reached throughServerHost. - Block
Entity Draw Context - What a block entity, mob or player submit hook draws with, in blocks under a pose stack (
PoseStack): one per hook call. - Block
States Host - The host’s methods both sides share of the
block_statesarea, implemented by the game and reached throughHost. - Block
States Server Host - The server host’s methods of the
block_statesarea, implemented by the game and reached throughServerHost. - Boss
Bars Server Host - The server host’s methods of the
boss_barsarea, implemented by the game and reached throughServerHost. - Camera
Draw Context - What
block_screen_effect_drawdraws with, one per hook call: quads in camera space, in blocks, with+xright,+yup and the camera at the origin looking down-z. It is the space ofScreenEffectRenderer’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. - Client
Input Client Host - The client host’s methods of the
client_inputarea, implemented by the game and reached throughcrate::ClientHost. - Client
Options Client Host - The client host’s methods of the
client_optionsarea, implemented by the game and reached throughcrate::ClientHost. - Client
Render Client Host - The client host’s methods of the
client_renderarea, implemented by the game and reached throughcrate::ClientHost. - Client
Session - The client_session service, reached through its host.
- Client
Text Client Host - Read-only component resolution and access to the client tooltip font.
- Client
View Client Host - The client host’s methods of the
client_viewarea, implemented by the game and reached throughcrate::ClientHost. - Client
View Host - The host’s methods both sides share of the
client_viewarea, implemented by the game and reached throughHost. - Commands
- The commands service, reached through its host.
- Config
Client Host - The client host’s methods of the
configarea, implemented by the game and reached throughcrate::ClientHost. - Config
Host - The host’s methods both sides share of the
configarea, implemented by the game and reached throughHost. - Config
Server Host - The server host’s methods of the
configarea, implemented by the game and reached throughServerHost. - Displays
Server Host - The server host’s methods of the
displaysarea, implemented by the game and reached throughServerHost. - Draw
Client Host - The client host’s methods of the
drawarea, implemented by the game and reached throughcrate::ClientHost. - Draw
Context - What the HUD, screen and tooltip hooks draw with, in GUI pixels: one per hook call.
- Effects
Client Host - The client host’s methods of the
effectsarea, implemented by the game and reached throughcrate::ClientHost. - Entities
Host - The host’s methods both sides share of the
entitiesarea, implemented by the game and reached throughHost. - Entities
Server Host - The server host’s methods of the
entitiesarea, implemented by the game and reached throughServerHost. - Instance
Groups - Client-side persistent copies of resolved models.
- Item
Entities Host - The host’s methods both sides share of the
item_entitiesarea, implemented by the game and reached throughHost. - Item
Particles Client Host - Item particle model resolution on the client.
- Items
Client Host - The client host’s methods of the
itemsarea, implemented by the game and reached throughcrate::ClientHost. - Items
Host - The host’s methods both sides share of the
itemsarea, implemented by the game and reached throughHost. - Items
Server Host - The server host’s methods of the
itemsarea, implemented by the game and reached throughServerHost. - Keys
Host - The host’s registry-wide key reads of the
keysarea, implemented by the game and reached throughHost. - Levels
- The levels service, reached through its host.
- Levels
Host - The host’s methods both sides share of the
levelsarea, implemented by the game and reached throughHost. - Living
Host - The host’s methods both sides share of the
livingarea, implemented by the game and reached throughHost. - Menus
Client Host - The client host’s methods of the
menusarea, implemented by the game and reached throughcrate::ClientHost. - Menus
Server Host - The server host’s methods of the
menusarea, implemented by the game and reached throughServerHost. - Merchants
Server Host - The server host’s methods of the
merchantsarea, implemented by the game and reached throughServerHost. - Messages
- The messages service, reached through its host.
- Minecarts
Server Host - The server host’s methods of the
minecartsarea, implemented by the game and reached throughServerHost. - Mobs
Host - The host’s methods both sides share of the
mobsarea, implemented by the game and reached throughHost. - Mobs
Server Host - The server host’s methods of the
mobsarea, implemented by the game and reached throughServerHost. - ModState
Host - The host’s methods both sides share of the
mod_statearea, implemented by the game and reached throughHost. - ModState
Server Host - The server host’s methods of the
mod_statearea, implemented by the game and reached throughServerHost. - Network
Client Host - The client host’s methods of the
networkarea, implemented by the game and reached throughcrate::ClientHost. - Network
Server Host - The server host’s methods of the
networkarea, implemented by the game and reached throughServerHost. - Players
- The players service, reached through its host.
- Players
Client Host - The client host’s methods of the
playersarea, implemented by the game and reached throughcrate::ClientHost. - Players
Host - The host’s methods both sides share of the
playersarea, implemented by the game and reached throughHost. - Players
Server Host - The server host’s methods of the
playersarea, implemented by the game and reached throughServerHost. - Projectiles
Server Host - The server host’s methods of the
projectilesarea, implemented by the game and reached throughServerHost. - Recipe
Properties Host - The host’s read-only mod recipe property membership service.
- Recipes
Client Host - The client host’s methods of the
recipesarea, implemented by the game and reached throughcrate::ClientHost. - Recipes
Host - The host’s methods both sides share of the
recipesarea, implemented by the game and reached throughHost. - Render
Assets - The render_assets service, reached through its host.
- Resources
Host - The host’s methods both sides share of the
resourcesarea, implemented by the game and reached throughHost. - Screens
Client Host - The client host’s methods of the
screensarea, implemented by the game and reached throughcrate::ClientHost. - Services
Client Host - The client host’s methods of the
servicesarea, implemented by the game and reached throughcrate::ClientHost. - Services
Server Host - The server host’s methods of the
servicesarea, implemented by the game and reached throughServerHost. - Tags
Host - The host’s methods both sides share of the
tagsarea, implemented by the game and reached throughHost. - World
Draw Context - Per-view untextured geometry, cleared even without listeners;
usagereports fixed setup-time limits shared across listeners and depth modes. - World
Edit Server Host - The server host’s methods of the
world_editarea, implemented by the game and reached throughServerHost.