Skip to main content

Module client

Module client 

Source
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§

AdvancementDone
Whether this client’s player has advancement id.
AttributeValue
An attribute’s value on this client’s player.
BodyTrack
Asks the mods about entity uuid’s body each frame (on) or not.
BodyTrackType
The same for every entity of entity_type.
EntityData
What this client was told an entity keeps under key (the runtime keeps it).
HeldItem
What this client’s player holds.
KeyDown
Whether GLFW key key is held down.
KeyName
The key binding is bound to, as the controls show it: a game’s binding by its name (sprint), a mod’s by its id (mymod:xray).
OnlyBlocks
Draws only blocks (their ids) of the world on this client, every other block unseen and seen through; none: every block as usual.
PlaySound
Plays sound to this client’s player, a streamed one from from seconds; its handle (to stop it).
ScreenSlots
The slots of the inventory screen this client has open (none when it has none).
SetBlockTint
Tints the block at pos on this client (0xRRGGBB; -1 clears it).
SetDimensions
This client’s side of an entity’s size (width < 0: vanilla’s).
StopSound
Stops a sound PlaySound started.

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 key is held down.
key_name
The key binding is 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 sound to this client’s player, a streamed one from from seconds; 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 pos on 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 PlaySound started.