Expand description
The client.
Modules§
- chat
- What the player sends to the chat.
- control
- This client’s player doing what a player does — its own keys held, its clicks — for tours, cut scenes, bots: the host’s actions (nothing on a dedicated server, nor without a player).
- game
- The game running on the client.
- input
- What the player presses.
- local
- What this client’s player is and sees: the host’s actions (nothing on a dedicated server, nor without a player).
- net
- What the client hears over the network.
- render
- What the client draws.
- ui
- Screens opened and closed.
Structs§
- Advancement
Done - Whether this client’s player has advancement
id. - Attribute
Value - An attribute’s value on this client’s player.
- Body
Track - Asks the mods about entity
uuid’s body each frame (on) or not. - Body
Track Type - The same for every entity of
entity_type. - Entity
Data - What this client was told an entity keeps under
key(the runtime keeps it). - Held
Item - What this client’s player holds.
- KeyDown
- Whether GLFW key
keyis held down. - KeyName
- The key
bindingis bound to, as the controls show it: a game’s binding by its name (sprint), a mod’s by its id (mymod:xray). - Only
Blocks - Draws only
blocks(their ids) of the world on this client, every other block unseen and seen through; none: every block as usual. - Play
Sound - Plays
soundto this client’s player, a streamed one fromfromseconds; its handle (to stop it). - Screen
Slots - The slots of the inventory screen this client has open (none when it has none).
- SetBlock
Tint - Tints the block at
poson this client (0xRRGGBB; -1 clears it). - SetDimensions
- This client’s side of an entity’s size (
width< 0: vanilla’s). - Stop
Sound - Stops a sound
PlaySoundstarted.
Functions§
- advancement_
done - Whether this client’s player has advancement
id. - attribute_
value - An attribute’s value on this client’s player.
- body_
track - Asks the mods about entity
uuid’s body each frame (on) or not. - body_
track_ type - The same for every entity of
entity_type. - held_
item - What this client’s player holds.
- key_
down - Whether GLFW key
keyis held down. - key_
name - The key
bindingis bound to, as the controls show it: a game’s binding by its name (sprint), a mod’s by its id (mymod:xray). - only_
blocks - Draws only
blocks(their ids) of the world on this client, every other block unseen and seen through; none: every block as usual. - play_
sound - Plays
soundto this client’s player, a streamed one fromfromseconds; its handle (to stop it). - screen_
slots - The slots of the inventory screen this client has open (none when it has none).
- set_
block_ tint - Tints the block at
poson this client (0xRRGGBB; -1 clears it). - set_
dimensions - This client’s side of an entity’s size (
width< 0: vanilla’s). - stop_
sound - Stops a sound
PlaySoundstarted.