Crate valence_server

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

BlockPos
Represents an absolute block position in world space.
BlockState
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.
ChunkPos
The X and Z position of a chunk.
ChunkView
Represents the set of all chunk positions that a client can see, defined by a center chunk position pos and view distance dist.
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.
ItemStack
A stack of items in an inventory.
PlayerTextures
Contains URLs to the skin and cape of a player.
Server
Contains global server state accessible as a Resource.
ServerPlugin
ServerSettings
Text
Represents formatted text in Minecraft’s JSON text format.
UniqueId
The universally unique identifier of an entity. Component wrapper for a Uuid.

Enums§

Difficulty
Direction
GameMode
Hand
ItemKind
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§

CompressionThreshold
Type alias for the compression threshold.