diff options
| author | mat <github@matdoes.dev> | 2022-04-30 23:04:18 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-04-30 23:04:18 -0500 |
| commit | 8313952541c049615af944b87b80c686bbf62073 (patch) | |
| tree | bda219f25ae448c2bd0054ce2187be63f513b02e /azalea-protocol/src/packets/game/serverbound_custom_payload_packet.rs | |
| parent | 0dc6decf7f3a4ea273e0eabccd74815c528ba6bd (diff) | |
| download | azalea-drasl-8313952541c049615af944b87b80c686bbf62073.tar.xz | |
Simplify packet macro
Now every packet implements McBufWritable and McBufReadable and uses those so the code doesn't have to be duplicated.
Diffstat (limited to 'azalea-protocol/src/packets/game/serverbound_custom_payload_packet.rs')
| -rw-r--r-- | azalea-protocol/src/packets/game/serverbound_custom_payload_packet.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/game/serverbound_custom_payload_packet.rs b/azalea-protocol/src/packets/game/serverbound_custom_payload_packet.rs new file mode 100644 index 00000000..43ddb700 --- /dev/null +++ b/azalea-protocol/src/packets/game/serverbound_custom_payload_packet.rs @@ -0,0 +1,11 @@ +// i don't know the actual name of this packet, i couldn't find it in the source code + +use crate::mc_buf::UnsizedByteArray; +use azalea_core::resource_location::ResourceLocation; +use packet_macros::GamePacket; + +#[derive(Clone, Debug, GamePacket)] +pub struct ServerboundCustomPayloadPacket { + pub identifier: ResourceLocation, + pub data: UnsizedByteArray, +} |
