pub struct GenericBlockEntity {
pub id: Cow<'static, str>,
pub pos: BlockPos,
pub properties: HashMap<Cow<'static, str>, Value>,
}Expand description
Fields§
§id: Cow<'static, str>The ID of this block entity.
Note that litematica had a bug introduced in version 1.18.0-0.9.0
which was only fixed in 1.20.1-0.15.3
that caused the block entity IDs to not be included in saved schematics. When deserializing
from one such schematic, this field will be an empty string.
pos: BlockPosThe BlockPos of this block entity.
properties: HashMap<Cow<'static, str>, Value>The raw NBT properties of this block entity.
Trait Implementations§
Source§impl BlockEntity for GenericBlockEntity
impl BlockEntity for GenericBlockEntity
Source§impl Clone for GenericBlockEntity
impl Clone for GenericBlockEntity
Source§fn clone(&self) -> GenericBlockEntity
fn clone(&self) -> GenericBlockEntity
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GenericBlockEntity
impl Debug for GenericBlockEntity
Source§impl<'de> Deserialize<'de> for GenericBlockEntity
Available on crate feature serde only.
impl<'de> Deserialize<'de> for GenericBlockEntity
Available on crate feature
serde only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GenericBlockEntity
impl PartialEq for GenericBlockEntity
Source§impl Serialize for GenericBlockEntity
Available on crate feature serde only.
impl Serialize for GenericBlockEntity
Available on crate feature
serde only.impl StructuralPartialEq for GenericBlockEntity
Auto Trait Implementations§
impl Freeze for GenericBlockEntity
impl RefUnwindSafe for GenericBlockEntity
impl Send for GenericBlockEntity
impl Sync for GenericBlockEntity
impl Unpin for GenericBlockEntity
impl UnwindSafe for GenericBlockEntity
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more