diff options
Diffstat (limited to 'azalea-world/src/entity')
| -rw-r--r-- | azalea-world/src/entity/attributes.rs | 2 | ||||
| -rwxr-xr-x | azalea-world/src/entity/data.rs | 1 | ||||
| -rw-r--r-- | azalea-world/src/entity/mod.rs | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/azalea-world/src/entity/attributes.rs b/azalea-world/src/entity/attributes.rs index fd78a328..6b10a2b4 100644 --- a/azalea-world/src/entity/attributes.rs +++ b/azalea-world/src/entity/attributes.rs @@ -1,4 +1,4 @@ -//! <https://minecraft.fandom.com/wiki/Attribute> +//! See <https://minecraft.fandom.com/wiki/Attribute>. use std::{ collections::HashMap, diff --git a/azalea-world/src/entity/data.rs b/azalea-world/src/entity/data.rs index 14d257e3..346b277b 100755 --- a/azalea-world/src/entity/data.rs +++ b/azalea-world/src/entity/data.rs @@ -103,6 +103,7 @@ impl McBufWritable for OptionalUnsignedInt { } } +/// A set of x, y, and z rotations. This is used for armor stands. #[derive(Clone, Debug, McBuf, Default)] pub struct Rotations { pub x: f32, diff --git a/azalea-world/src/entity/mod.rs b/azalea-world/src/entity/mod.rs index bf758a12..60a00bfd 100644 --- a/azalea-world/src/entity/mod.rs +++ b/azalea-world/src/entity/mod.rs @@ -172,7 +172,7 @@ impl From<&LastSentPosition> for BlockPos { /// The name of the world the entity is in. If two entities share the same world /// name, we assume they're in the same world. #[derive(Component, Clone, Debug, PartialEq, Deref, DerefMut)] -pub struct WorldName(ResourceLocation); +pub struct WorldName(pub ResourceLocation); /// A component for entities that can jump. /// |
