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