pub struct Block {Show 20 fields
pub id: u32,
pub name: String,
pub display_name: String,
pub hardness: Option<f32>,
pub resistance: f32,
pub stack_size: u32,
pub diggable: bool,
pub bounding_box: String,
pub material: Option<String>,
pub harvest_tools: HashMap<String, bool>,
pub variations: Option<Vec<BlockVariation>>,
pub drops: Vec<BlockDrop>,
pub emit_light: u8,
pub filter_light: u8,
pub transparent: bool,
pub states: Vec<BlockStateDefinition>,
pub min_state_id: u32,
pub max_state_id: u32,
pub default_state: u32,
pub state_id_map: Option<HashMap<u32, Block>>,
}
Fields§
§id: u32
§name: String
§display_name: String
§hardness: Option<f32>
§resistance: f32
§stack_size: u32
§diggable: bool
§bounding_box: String
§material: Option<String>
§harvest_tools: HashMap<String, bool>
§variations: Option<Vec<BlockVariation>>
§drops: Vec<BlockDrop>
§emit_light: u8
§filter_light: u8
§transparent: bool
§states: Vec<BlockStateDefinition>
§min_state_id: u32
§max_state_id: u32
§default_state: u32
§state_id_map: Option<HashMap<u32, Block>>
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 Freeze for Block
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