Expand description
§valence_server
Defines the “core” of the Valence server that plugins depend on. If a plugin module here is large enough, it may be split off into its own crate to reduce compile times.
The contents of valence_server
are re-exported from the main valence
crate, so end users should not interact with this crate directly.
Re-exports§
pub use event_loop::EventLoopPostUpdate;
pub use event_loop::EventLoopPreUpdate;
pub use event_loop::EventLoopUpdate;
pub use layer::ChunkLayer;
pub use layer::EntityLayer;
pub use layer::Layer;
pub use layer::LayerBundle;
pub use valence_protocol::ident;
pub use valence_protocol::math;
pub use valence_protocol::text;
pub use valence_protocol::uuid;
pub use bevy_app as app;
pub use bevy_ecs as ecs;
pub use rand;
pub use valence_entity as entity;
pub use valence_nbt as nbt;
pub use valence_protocol as protocol;
pub use valence_registry as registry;
Modules§
- abilities
- action
- block
- client
- client_
command - client_
settings - custom_
payload - event_
loop - hand_
swing - interact_
block - interact_
entity - interact_
item - item
- keepalive
- layer
- Defines chunk layers and entity layers. Chunk layers contain the chunks and dimension data of a world, while entity layers contain all the Minecraft entities.
- message
- movement
- op_
level - resource_
pack - spawn
- Handles spawning and respawning the client.
- status
- teleport
- title
Macros§
- ident
- Creates a new
Ident
at compile time from a string literal. A compile error is raised if the string is not a valid resource identifier.
Structs§
- Block
Pos - Represents an absolute block position in world space.
- Block
State - Represents the state of a block. This does not include block entity data such as the text on a sign, the design on a banner, or the content of a spawner.
- Chunk
Pos - The X and Z position of a chunk.
- Chunk
View - Represents the set of all chunk positions that a client can see, defined by
a center chunk position
pos
and view distancedist
. - Despawned
- A marker
Component
for entities that should be despawned at the end of the tick. - Ident
- A wrapper around a string type
S
which guarantees the wrapped string is a valid resource identifier. - Item
Stack - A stack of items in an inventory.
- Player
Textures - Contains URLs to the skin and cape of a player.
- Server
- Contains global server state accessible as a
Resource
. - Server
Plugin - Server
Settings - Text
- Represents formatted text in Minecraft’s JSON text format.
- Unique
Id - The universally unique identifier of an entity. Component wrapper for a
Uuid
.
Enums§
- Difficulty
- Direction
- Game
Mode - Hand
- Item
Kind - Represents an item from the game
Constants§
- DEFAULT_
TPS - Minecraft’s standard ticks per second (TPS).
- MINECRAFT_
VERSION - The stringified name of the Minecraft version this library currently targets.
- PROTOCOL_
VERSION - The Minecraft protocol version this library currently targets.
Type Aliases§
- Compression
Threshold - Type alias for the compression threshold.