Skip to content

Commit 84cd261

Browse files
authored
1.21.11 (#273)
* run codegen for 25w44a * 25w44a * 25w46a * rename ResourceLocation to Identifier per mojmap changes * update changelog * 1.21.11-pre1 * 1.21.11-pre2 * 1.21.11-pre3 * add AttackRange fields from pre4 * 1.21.11-rc3 * 1.21.11
1 parent 676707a commit 84cd261

File tree

26 files changed

+2287
-185
lines changed

26 files changed

+2287
-185
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ is breaking anyways, semantic versioning is not followed.
1717

1818
### Changed
1919

20-
- Update to Minecraft 1.21.10. (help from @eihqnh)
20+
- Update to Minecraft 1.21.11. (with help from @eihqnh)
2121
- Update to Bevy 0.17.
2222
- `Client::query`, `map_component`, and `map_get_component` were replaced by `Client::query_self`.
2323
- Rename `SendPacketEvent` to `SendGamePacketEvent` and `PingEvent` to `GamePingEvent`.

Cargo.lock

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ resolver = "3"
2222
# --- Workspace Settings ---
2323

2424
[workspace.package]
25-
version = "0.14.0+mc1.21.10"
25+
version = "0.14.0+mc1.21.11"
2626
edition = "2024"
2727
license = "MIT"
2828
repository = "https://github.com/azalea-rs/azalea"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ A collection of Rust crates for making Minecraft bots, clients, and tools.
1010

1111
<!-- The line below is automatically read and updated by the migrate script, so don't change it manually. -->
1212

13-
_Currently supported Minecraft version: `1.21.10`._
13+
_Currently supported Minecraft version: `1.21.11`._
1414

1515
> [!WARNING]
1616
> Many parts of Azalea are still unfinished and will receive breaking changes in the future. Most breaking changes will be listed in the [changelog](CHANGELOG.md).

azalea-client/src/plugins/packet/game/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ pub fn process_packet(ecs: &mut World, player: Entity, packet: &ClientboundGameP
115115
delete_chat,
116116
explode,
117117
forget_level_chunk,
118-
horse_screen_open,
118+
mount_screen_open,
119119
map_item_data,
120120
merchant_offers,
121121
move_vehicle,
@@ -1283,7 +1283,7 @@ impl GamePacketHandler<'_> {
12831283
});
12841284
}
12851285

1286-
pub fn horse_screen_open(&mut self, _p: &ClientboundHorseScreenOpen) {}
1286+
pub fn mount_screen_open(&mut self, _p: &ClientboundMountScreenOpen) {}
12871287

12881288
pub fn map_item_data(&mut self, _p: &ClientboundMapItemData) {}
12891289

azalea-core/src/registry_holder.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77
88
use std::{collections::HashMap, io::Cursor};
99

10+
use azalea_buf::AzBuf;
1011
use indexmap::IndexMap;
1112
use simdnbt::{
1213
Deserialize, FromNbtTag, Serialize, ToNbtTag,
1314
owned::{NbtCompound, NbtTag},
1415
};
1516
use tracing::error;
1617

17-
use crate::identifier::Identifier;
18+
use crate::{codec_utils::*, identifier::Identifier};
1819

1920
/// The base of the registry.
2021
///
@@ -330,12 +331,16 @@ pub struct TrimPatternElement {
330331
pub pattern: HashMap<String, String>,
331332
}
332333

333-
#[derive(Debug, Clone, Serialize, Deserialize)]
334+
#[derive(
335+
Debug, Clone, serde::Serialize, simdnbt::Serialize, simdnbt::Deserialize, AzBuf, PartialEq,
336+
)]
334337
#[cfg_attr(feature = "strict_registry", simdnbt(deny_unknown_fields))]
335338
pub struct DamageTypeElement {
336339
pub message_id: String,
337340
pub scaling: String,
338341
pub exhaustion: f32,
342+
#[serde(skip_serializing_if = "is_default")]
339343
pub effects: Option<String>,
344+
#[serde(skip_serializing_if = "is_default")]
340345
pub death_message_type: Option<String>,
341346
}

azalea-core/src/sound.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ use crate::identifier::Identifier;
55

66
#[derive(Clone, Debug, PartialEq, AzBuf, Serialize)]
77
pub struct CustomSound {
8-
pub location: Identifier,
9-
pub fixed_range: Option<f32>,
8+
pub sound_id: Identifier,
9+
pub range: Option<f32>,
1010
}

azalea-entity/src/data.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ pub enum EntityDataValue {
9090
WolfSoundVariant(azalea_registry::WolfSoundVariant),
9191
FrogVariant(azalea_registry::FrogVariant),
9292
PigVariant(azalea_registry::PigVariant),
93+
ZombieNautilusVariant(azalea_registry::ZombieNautilusVariant),
9394
OptionalGlobalPos(Option<GlobalPos>),
9495
PaintingVariant(azalea_registry::PaintingVariant),
9596
SnifferState(SnifferStateKind),
@@ -99,6 +100,7 @@ pub enum EntityDataValue {
99100
Vector3(Vec3f32),
100101
Quaternion(Quaternion),
101102
ResolvableProfile(components::Profile),
103+
HumanoidArm(HumanoidArm),
102104
}
103105

104106
#[derive(Clone, Debug, PartialEq)]
@@ -209,3 +211,10 @@ pub enum WeatheringCopperStateKind {
209211
Weathered,
210212
Oxidized,
211213
}
214+
215+
#[derive(AzBuf, Clone, Copy, Debug, PartialEq, Eq, Default)]
216+
pub enum HumanoidArm {
217+
Left = 0,
218+
#[default]
219+
Right = 1,
220+
}

azalea-entity/src/dimensions.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ impl From<EntityKind> for EntityDimensions {
7979
EntityKind::Breeze => EntityDimensions::new(0.6, 1.77).eye_height(1.3452),
8080
EntityKind::BreezeWindCharge => EntityDimensions::new(0.3125, 0.3125).eye_height(0.0),
8181
EntityKind::Camel => EntityDimensions::new(1.7, 2.375).eye_height(2.275),
82+
EntityKind::CamelHusk => EntityDimensions::new(1.7, 2.375).eye_height(2.275),
8283
EntityKind::Cat => EntityDimensions::new(0.6, 0.7).eye_height(0.35),
8384
EntityKind::CaveSpider => EntityDimensions::new(0.7, 0.5).eye_height(0.45),
8485
EntityKind::CherryBoat => EntityDimensions::new(1.375, 0.5625).eye_height(0.5625),
@@ -150,6 +151,7 @@ impl From<EntityKind> for EntityDimensions {
150151
EntityKind::Minecart => EntityDimensions::new(0.98, 0.7),
151152
EntityKind::Mooshroom => EntityDimensions::new(0.9, 1.4).eye_height(1.3),
152153
EntityKind::Mule => EntityDimensions::new(1.39648, 1.6).eye_height(1.52),
154+
EntityKind::Nautilus => EntityDimensions::new(0.875, 0.95).eye_height(0.2751),
153155
EntityKind::OakBoat => EntityDimensions::new(1.375, 0.5625).eye_height(0.5625),
154156
EntityKind::OakChestBoat => EntityDimensions::new(1.375, 0.5625).eye_height(0.5625),
155157
EntityKind::Ocelot => EntityDimensions::new(0.6, 0.7),
@@ -158,6 +160,7 @@ impl From<EntityKind> for EntityDimensions {
158160
EntityKind::PaleOakBoat => EntityDimensions::new(1.375, 0.5625).eye_height(0.5625),
159161
EntityKind::PaleOakChestBoat => EntityDimensions::new(1.375, 0.5625).eye_height(0.5625),
160162
EntityKind::Panda => EntityDimensions::new(1.3, 1.25),
163+
EntityKind::Parched => EntityDimensions::new(0.6, 1.99).eye_height(1.74),
161164
EntityKind::Parrot => EntityDimensions::new(0.5, 0.9).eye_height(0.54),
162165
EntityKind::Phantom => EntityDimensions::new(0.9, 0.5).eye_height(0.175),
163166
EntityKind::Pig => EntityDimensions::new(0.9, 0.9),
@@ -212,6 +215,7 @@ impl From<EntityKind> for EntityDimensions {
212215
EntityKind::Zoglin => EntityDimensions::new(1.39648, 1.4),
213216
EntityKind::Zombie => EntityDimensions::new(0.6, 1.95).eye_height(1.74),
214217
EntityKind::ZombieHorse => EntityDimensions::new(1.39648, 1.6).eye_height(1.52),
218+
EntityKind::ZombieNautilus => EntityDimensions::new(0.875, 0.95).eye_height(0.2751),
215219
EntityKind::ZombieVillager => EntityDimensions::new(0.6, 1.95).eye_height(1.74),
216220
EntityKind::ZombifiedPiglin => EntityDimensions::new(0.6, 1.95).eye_height(1.79),
217221
}

0 commit comments

Comments
 (0)