1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 06:16:04 +00:00

add entity -> add mob

This commit is contained in:
mat 2022-04-30 22:18:33 -05:00
parent 51201ffe65
commit 3c3deb625d
2 changed files with 3 additions and 5 deletions

View file

@ -1,10 +1,8 @@
use crate::mc_buf::UnsizedByteArray;
use azalea_core::resource_location::ResourceLocation;
use packet_macros::GamePacket;
use uuid::Uuid;
#[derive(Clone, Debug, GamePacket)]
pub struct ClientboundAddEntityPacket {
pub struct ClientboundAddMobPacket {
#[varint]
pub id: i32,
pub uuid: Uuid,

View file

@ -1,4 +1,4 @@
pub mod clientbound_add_entity_packet;
pub mod clientbound_add_mob_packet;
pub mod clientbound_change_difficulty_packet;
pub mod clientbound_custom_payload_packet;
pub mod clientbound_declare_commands_packet;
@ -23,7 +23,7 @@ declare_state_packets!(
GamePacket,
Serverbound => {},
Clientbound => {
0x02: clientbound_add_entity_packet::ClientboundAddEntityPacket,
0x02: clientbound_add_mob_packet::ClientboundAddMobPacket,
0x0e: clientbound_change_difficulty_packet::ClientboundChangeDifficultyPacket,
0x12: clientbound_declare_commands_packet::ClientboundDeclareCommandsPacket,
0x1a: clientbound_disconnect_packet::ClientboundDisconnectPacket,