pub struct AngryEntityCodec;
Trait Implementations§
Source§impl SingleEntityCodec for AngryEntityCodec
impl SingleEntityCodec for AngryEntityCodec
Source§type Comp = AngryEntity
type Comp = AngryEntity
Component type, an associated type is used to allow only on implementation per codec struct.
fn encode(&self, src: &Self::Comp, dst: &mut CompoundTag)
fn decode(&self, src: &CompoundTag) -> Self::Comp
Auto Trait Implementations§
impl Freeze for AngryEntityCodec
impl RefUnwindSafe for AngryEntityCodec
impl Send for AngryEntityCodec
impl Sync for AngryEntityCodec
impl Unpin for AngryEntityCodec
impl UnwindSafe for AngryEntityCodec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<C, D> EntityCodec for C
impl<C, D> EntityCodec for C
Source§fn encode(
&self,
src: &EntityRef<'_>,
dst: &mut CompoundTag,
) -> Result<(), String>
fn encode( &self, src: &EntityRef<'_>, dst: &mut CompoundTag, ) -> Result<(), String>
Encode components stored accessible from the given entity reference into given destination
compound tag.
Source§fn decode(
&self,
src: &CompoundTag,
dst: &mut EntityBuilder,
) -> Result<(), String>
fn decode( &self, src: &CompoundTag, dst: &mut EntityBuilder, ) -> Result<(), String>
Decode given source compound tag and add decoded components into the given entity builder.
Source§fn default(&self, dst: &mut EntityBuilder)
fn default(&self, dst: &mut EntityBuilder)
Add default components to the given entity builder.