pub struct Block { /* private fields */ }
Implementations§
source§impl Block
impl Block
pub fn name(&self) -> &str
pub fn snowy(&self) -> bool
sourcepub fn encoded_description(&self) -> &str
pub fn encoded_description(&self) -> &str
A string of the format “id|prop1=val1,prop2=val2”. The properties are ordered lexigraphically. This somewhat matches the way Minecraft stores variants in blockstates, but with the block ID/name prepended.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Block
impl<'de> Deserialize<'de> for Block
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
Auto Trait Implementations§
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
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