aboutsummaryrefslogtreecommitdiff
path: root/azalea-inventory/src/components.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-01-12 22:43:37 +0000
committermat <git@matdoes.dev>2025-01-12 22:43:37 +0000
commita1435b3b951746a79561c24fd7bdab9324bd00df (patch)
tree4b5f336bba33d5fc198f2a0dd2737eeac17dcf85 /azalea-inventory/src/components.rs
parent093c99a0715b242895e553341711065e82cb69f6 (diff)
downloadazalea-drasl-a1435b3b951746a79561c24fd7bdab9324bd00df.tar.xz
fix bugs with decoding/encoding DataComponentPatch
Diffstat (limited to 'azalea-inventory/src/components.rs')
-rw-r--r--azalea-inventory/src/components.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/azalea-inventory/src/components.rs b/azalea-inventory/src/components.rs
index e62288c6..2675bee4 100644
--- a/azalea-inventory/src/components.rs
+++ b/azalea-inventory/src/components.rs
@@ -305,8 +305,7 @@ pub enum AttributeModifierOperation {
// circular dependency)
#[derive(Clone, PartialEq, AzBuf)]
pub struct AttributeModifier {
- pub uuid: Uuid,
- pub name: String,
+ pub id: ResourceLocation,
pub amount: f64,
pub operation: AttributeModifierOperation,
}
@@ -877,8 +876,12 @@ impl DataComponent for DamageResistant {
pub struct Equippable {
pub slot: EquipmentSlot,
pub equip_sound: SoundEvent,
- pub model: Option<ResourceLocation>,
- pub allowed_entities: HolderSet<EntityKind, ResourceLocation>,
+ pub asset_id: Option<ResourceLocation>,
+ pub camera_overlay: Option<ResourceLocation>,
+ pub allowed_entities: Option<HolderSet<EntityKind, ResourceLocation>>,
+ pub dispensable: bool,
+ pub swappable: bool,
+ pub damage_on_hurt: bool,
}
impl DataComponent for Equippable {
const KIND: DataComponentKind = DataComponentKind::Equippable;