mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-30 20:14:23 +00:00
19 lines
325 B
Rust
19 lines
325 B
Rust
use pumpkin_macros::packet;
|
|
use serde::Serialize;
|
|
|
|
#[derive(Serialize)]
|
|
#[packet(0x1F)]
|
|
pub struct CEntityStatus {
|
|
entity_id: i32,
|
|
entity_status: i8,
|
|
}
|
|
|
|
impl CEntityStatus {
|
|
pub fn new(entity_id: i32, entity_status: i8) -> Self {
|
|
Self {
|
|
entity_id,
|
|
entity_status,
|
|
}
|
|
}
|
|
}
|