[][src]Struct basin2_data::blocks::BlockT

pub struct BlockT {
    pub registry_name: AtomicSet<String>,
    pub registry_id: AtomicU32,
    pub material: Material,
    pub has_collision: bool,
    pub light_emission: u8,
    pub explosion_resistance: f32,
    pub destroy_time: f32,
    pub is_ticking: bool,
    pub friction: f32,
    pub speed_factor: f32,
    pub jump_factor: f32,
    pub dynamic_shape: bool,
    pub drops: LootTable,
    pub can_occlude: bool,
    pub default_state: Option<Box<dyn BlockStateContainerImpl>>,
}

Fields

registry_name: AtomicSet<String>registry_id: AtomicU32material: Materialhas_collision: boollight_emission: u8explosion_resistance: f32destroy_time: f32is_ticking: boolfriction: f32speed_factor: f32jump_factor: f32dynamic_shape: booldrops: LootTablecan_occlude: booldefault_state: Option<Box<dyn BlockStateContainerImpl>>

Trait Implementations

impl Debug for BlockT[src]

impl Default for BlockT[src]

impl RegistryItem for BlockT[src]

Auto Trait Implementations

impl !RefUnwindSafe for BlockT

impl Send for BlockT

impl Sync for BlockT

impl Unpin for BlockT

impl !UnwindSafe for BlockT

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.