diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2026-01-13 10:51:45 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-13 10:51:45 -0600 |
| commit | b21ac946cafaacc9ee2478ea48ed9e72554f79ed (patch) | |
| tree | 4d05744b9801e94f5da6563d8fabddfb20d1c7b7 /azalea-entity/src/effects.rs | |
| parent | d5fa5e32b37754b3b5c136e58821e48cd3b7c2ff (diff) | |
| download | azalea-drasl-b21ac946cafaacc9ee2478ea48ed9e72554f79ed.tar.xz | |
Merge AzaleaRead and AzaleaWrite (#305)
Diffstat (limited to 'azalea-entity/src/effects.rs')
| -rw-r--r-- | azalea-entity/src/effects.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/azalea-entity/src/effects.rs b/azalea-entity/src/effects.rs index 39074ebd..72c757d6 100644 --- a/azalea-entity/src/effects.rs +++ b/azalea-entity/src/effects.rs @@ -3,7 +3,7 @@ use std::{ io::{self, Cursor, Write}, }; -use azalea_buf::{AzBuf, AzaleaRead, AzaleaWrite, BufReadError}; +use azalea_buf::{AzBuf, BufReadError}; use azalea_core::bitset::FixedBitSet; use azalea_registry::builtin::MobEffect; @@ -27,7 +27,7 @@ pub struct MobEffectFlags { pub blend: bool, } -impl AzaleaRead for MobEffectFlags { +impl AzBuf for MobEffectFlags { fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError> { let bitset = FixedBitSet::<8>::azalea_read(buf)?; let ambient = bitset.index(0); @@ -41,9 +41,6 @@ impl AzaleaRead for MobEffectFlags { blend, }) } -} - -impl AzaleaWrite for MobEffectFlags { fn azalea_write(&self, buf: &mut impl Write) -> io::Result<()> { let mut bitset = FixedBitSet::<8>::new(); if self.ambient { |
