Structs§
- Client
- The main client component. Contains the underlying network connection and packet buffer.
- Client
Bundle - The bundle of components needed for clients to function. All components are required unless otherwise stated.
- Client
Bundle Args - Arguments for
ClientBundle::new. - Client
Marker - Marker
Componentfor client entities. This component should exist even if the client is disconnected. - Client
Plugin - Disconnect
Client - A
Commandto disconnect aClientwith a displayed reason. - Entity
Remove Buf - Contains a list of Minecraft entities that need to be despawned. Entity IDs in this list will be despawned all at once at the end of the tick.
- Flush
Packets Set - The
SystemSetinPostUpdatewhere clients have their packet buffer flushed. Any system that writes packets to clients should happen before this. Otherwise, the data will arrive one tick late. - Ip
- Load
Entity ForClient Event - This event will be emitted when a entity is loaded for a client (e.g when moving into range of the entity).
- OldView
- OldView
Distance - The
ViewDistanceat the end of the previous tick. Automatically updated asViewDistanceis changed. - OldView
Item - Automatically generated [
WorldQuery] item type forOldView, returned when iterating over query results. - OldVisible
Chunk Layer - The value of
VisibleChunkLayerfrom the end of the previous tick. - OldVisible
Entity Layers - The value of
VisibleEntityLayersfrom the end of the previous tick. - Properties
- Player properties from the game profile.
- Property
Value - Received
Packet - Spawn
Clients Set - The
SystemSetinPreUpdatewhere new clients should be spawned. Systems that need to perform initialization work on clients before users get access to it should run after this set. - Unload
Entity ForClient Event - This event will be emitted when a entity is unloaded for a client (e.g when moving out of range of the entity).
- Update
Clients Set - The system set where various facets of the client are updated. Systems that modify layers should run before this.
- Username
- View
- View
Distance - View
Item - Automatically generated [
WorldQuery] item type forView, returned when iterating over query results. - Visible
Chunk Layer - A
Componentcontaining a handle to theChunkLayera client can see. - Visible
Entity Layers - A
Componentcontaining the set ofEntityLayers a client can see. All Minecraft entities from all layers in this set are potentially visible to the client.
Traits§
- Client
Connection - Represents the bidirectional packet channel between the server and a client in the “play” state.
Functions§
- despawn_
disconnected_ clients - A system for adding
Despawnedcomponents to disconnected clients. This works by listening for removedClientcomponents.