pub struct NullEntityCodec;
Expand description
A null codec, this codec make nothing and can be used as a temporary placeholder.
Trait Implementations§
Source§impl EntityCodec for NullEntityCodec
impl EntityCodec for NullEntityCodec
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.
Auto Trait Implementations§
impl Freeze for NullEntityCodec
impl RefUnwindSafe for NullEntityCodec
impl Send for NullEntityCodec
impl Sync for NullEntityCodec
impl Unpin for NullEntityCodec
impl UnwindSafe for NullEntityCodec
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