diff options
| author | mat <git@matdoes.dev> | 2025-01-12 22:43:37 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-01-12 22:43:37 +0000 |
| commit | a1435b3b951746a79561c24fd7bdab9324bd00df (patch) | |
| tree | 4b5f336bba33d5fc198f2a0dd2737eeac17dcf85 /azalea-inventory/src/components.rs | |
| parent | 093c99a0715b242895e553341711065e82cb69f6 (diff) | |
| download | azalea-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.rs | 11 |
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; |
