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

doc updates

This commit is contained in:
mat 2025-05-31 23:14:59 -06:00
parent 0a7648ce48
commit b103e6fdc0
5 changed files with 10 additions and 9 deletions

View file

@ -26,4 +26,4 @@ async fn main() {
}
```
Thanks to [wiki contributors](https://minecraft.wiki/w/Minecraft_Wiki:Projects/wiki.vg_merge/Microsoft_Authentication_Scheme), [Overhash](https://gist.github.com/OverHash/a71b32846612ba09d8f79c9d775bfadf), and [prismarine-auth contributors](https://github.com/PrismarineJS/prismarine-auth).
Thanks to [wiki contributors](https://minecraft.wiki/w/Microsoft_authentication), [Overhash](https://gist.github.com/OverHash/a71b32846612ba09d8f79c9d775bfadf), and [prismarine-auth contributors](https://github.com/PrismarineJS/prismarine-auth).

View file

@ -1233,7 +1233,7 @@ impl GamePacketHandler<'_> {
// TODO: handle ContainerSetData packet
// this is used for various things like the furnace progress
// bar
// see https://minecraft.wiki/w/Minecraft_Wiki:Projects/wiki.vg_merge/Protocol#Set_Container_Property
// see https://minecraft.wiki/w/Java_Edition_protocol/Packets#Set_Container_Property
// as_system::<Query<&mut Inventory>>(self.ecs, |mut query| {
// let inventory = query.get_mut(self.player).unwrap();

View file

@ -124,14 +124,15 @@ impl From<Vec<u8>> for BitSet {
}
}
/// A list of bits with a known fixed size.
/// A compact fixed-size array of bits.
///
/// The `N` is the number of bytes reserved for the bitset. You're encouraged to
/// The `N` is the number of bits reserved for the bitset. You're encouraged to
/// use it like `FixedBitSet<20>` if you need 20 bits.
///
/// Note that this is primarily meant for fast serialization and deserialization
/// for Minecraft. An alternative that would be ~20% faster for accessing data
/// could store it interally as `usize`s instead of `u8`s.
/// Note that this is optimized for fast serialization and deserialization for
/// Minecraft, and may not be as performant as it could be for other purposes.
/// Notably, the internal representation is an array of `u8`s even though
/// `usize` would be slightly faster.
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct FixedBitSet<const N: usize>
where

View file

@ -1,4 +1,4 @@
//! See <https://minecraft.fandom.com/wiki/Attribute>.
//! See <https://minecraft.wiki/w/Attribute>.
use std::collections::{HashMap, hash_map};

View file

@ -22,7 +22,7 @@ pub struct ClientboundAddEntity {
/// 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)
/// See [the wiki](https://minecraft.wiki/w/Java_Edition_protocol/Object_data)
/// for more information about this field.
#[var]
pub data: u32,