mirror of
https://github.com/italicsjenga/valence.git
synced 2024-12-23 14:31:30 +11:00
cargo fmt
This commit is contained in:
parent
f35d8e7b13
commit
b5a88be024
|
@ -324,7 +324,7 @@ pub fn build() -> anyhow::Result<()> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Gets the value of the property with the given name from this block.
|
/// Gets the value of the property with the given name from this block.
|
||||||
///
|
///
|
||||||
/// If this block does not have the property, then `None` is returned.
|
/// If this block does not have the property, then `None` is returned.
|
||||||
pub const fn get(self, name: PropName) -> Option<PropValue> {
|
pub const fn get(self, name: PropName) -> Option<PropValue> {
|
||||||
match self.to_type() {
|
match self.to_type() {
|
||||||
|
@ -334,7 +334,7 @@ pub fn build() -> anyhow::Result<()> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Sets the value of a propery on this block, returning the modified block.
|
/// Sets the value of a propery on this block, returning the modified block.
|
||||||
///
|
///
|
||||||
/// If this block does not have the given property or the property value is invalid,
|
/// If this block does not have the given property or the property value is invalid,
|
||||||
/// then the orginal block is returned unchanged.
|
/// then the orginal block is returned unchanged.
|
||||||
#[must_use]
|
#[must_use]
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#![forbid(unsafe_code)]
|
#![forbid(unsafe_code)]
|
||||||
|
|
||||||
mod aabb;
|
mod aabb;
|
||||||
|
pub mod block;
|
||||||
mod block_pos;
|
mod block_pos;
|
||||||
mod byte_angle;
|
mod byte_angle;
|
||||||
mod chunk;
|
mod chunk;
|
||||||
|
@ -19,7 +20,6 @@ pub mod util;
|
||||||
mod var_int;
|
mod var_int;
|
||||||
mod var_long;
|
mod var_long;
|
||||||
mod world;
|
mod world;
|
||||||
pub mod block;
|
|
||||||
|
|
||||||
pub use aabb::Aabb;
|
pub use aabb::Aabb;
|
||||||
pub use chunk::{Chunk, ChunkPos};
|
pub use chunk::{Chunk, ChunkPos};
|
||||||
|
|
|
@ -120,8 +120,8 @@ struct NewClientMessage {
|
||||||
reply: oneshot::Sender<anyhow::Result<ClientPacketChannels>>,
|
reply: oneshot::Sender<anyhow::Result<ClientPacketChannels>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The result type returned from [`ServerConfig::start`] after the server is shut
|
/// The result type returned from [`ServerConfig::start`] after the server is
|
||||||
/// down.
|
/// shut down.
|
||||||
pub type ShutdownResult = Result<(), ShutdownError>;
|
pub type ShutdownResult = Result<(), ShutdownError>;
|
||||||
pub type ShutdownError = Box<dyn Error + Send + Sync + 'static>;
|
pub type ShutdownError = Box<dyn Error + Send + Sync + 'static>;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue