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
Component
for client entities. This component should exist even if the client is disconnected. - Client
Plugin - Disconnect
Client - A
Command
to disconnect aClient
with 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
SystemSet
inPostUpdate
where 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
ViewDistance
at the end of the previous tick. Automatically updated asViewDistance
is changed. - OldView
Item - Automatically generated [
WorldQuery
] item type forOldView
, returned when iterating over query results. - OldVisible
Chunk Layer - The value of
VisibleChunkLayer
from the end of the previous tick. - OldVisible
Entity Layers - The value of
VisibleEntityLayers
from the end of the previous tick. - Properties
- Player properties from the game profile.
- Property
Value - Received
Packet - Spawn
Clients Set - The
SystemSet
inPreUpdate
where 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
Component
containing a handle to theChunkLayer
a client can see. - Visible
Entity Layers - A
Component
containing the set ofEntityLayer
s 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
Despawned
components to disconnected clients. This works by listening for removedClient
components.