mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
document ClientboundAddEntity::data
This commit is contained in:
parent
d6a4d91347
commit
5f5616145b
1 changed files with 9 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
use azalea_buf::AzBuf;
|
||||
use azalea_core::{delta::PositionDelta8, position::Vec3, resource_location::ResourceLocation};
|
||||
use azalea_entity::{metadata::apply_default_metadata, EntityBundle};
|
||||
use azalea_entity::{EntityBundle, metadata::apply_default_metadata};
|
||||
use azalea_protocol_macros::ClientboundGamePacket;
|
||||
use azalea_world::MinecraftEntityId;
|
||||
use uuid::Uuid;
|
||||
|
@ -16,6 +16,14 @@ pub struct ClientboundAddEntity {
|
|||
pub x_rot: i8,
|
||||
pub y_rot: i8,
|
||||
pub y_head_rot: i8,
|
||||
/// The entity's "object data". This is unused for most entities.
|
||||
///
|
||||
/// Projectiles and fishing hooks treat this as an entity ID, which you're
|
||||
/// encouraged to use [`MinecraftEntityId::from`] for. Other entities may
|
||||
/// treat it as a block state or enum variant.
|
||||
///
|
||||
/// See [the wiki](https://minecraft.wiki/w/Minecraft_Wiki:Projects/wiki.vg_merge/Object_Data)
|
||||
/// for more information about this field.
|
||||
#[var]
|
||||
pub data: u32,
|
||||
pub velocity: PositionDelta8,
|
||||
|
|
Loading…
Add table
Reference in a new issue