Struct minecraft_data_rs::models::block::Block [−][src]
pub struct Block {}Show fields
pub id: u32, pub display_name: String, pub name: String, pub hardness: Option<f32>, pub stack_size: u8, pub diggable: bool, pub bounding_box: BoundingBox, pub material: Option<String>, pub harvest_tool: Option<HashMap<u32, bool>>, pub variations: Option<Vec<Variation>>, pub drops: Vec<u32>, pub transparent: bool, pub emit_light: u8, pub filter_light: u8, pub min_state_id: Option<u32>, pub max_state_id: Option<u32>, pub default_state: Option<u32>, pub blast_resistance: Option<f32>,
Fields
id: u32
display_name: String
name: String
hardness: Option<f32>
stack_size: u8
diggable: bool
bounding_box: BoundingBox
material: Option<String>
harvest_tool: Option<HashMap<u32, bool>>
variations: Option<Vec<Variation>>
drops: Vec<u32>
transparent: bool
emit_light: u8
filter_light: u8
min_state_id: Option<u32>
max_state_id: Option<u32>
default_state: Option<u32>
blast_resistance: Option<f32>
Trait Implementations
impl Clone for Block
[src]
impl Debug for Block
[src]
impl<'de> Deserialize<'de> for Block
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,