Struct minecraft_data::block_state
source · pub struct block_state(/* private fields */);Implementations§
source§impl block_state
impl block_state
source§impl block_state
impl block_state
pub const fn to_block(self) -> block
pub const fn to_fluid(self) -> fluid_state
pub const fn luminance(self) -> u8
pub const fn has_sided_transparency(self) -> bool
pub const fn lava_ignitable(self) -> bool
pub const fn material_replaceable(self) -> bool
pub const fn opaque(self) -> bool
pub const fn tool_required(self) -> bool
pub const fn exceeds_cube(self) -> bool
pub const fn redstone_power_source(self) -> bool
pub const fn has_comparator_output(self) -> bool
pub const fn opacity(self) -> Option<u8>
pub const fn solid(self) -> Option<bool>
pub const fn translucent(self) -> Option<bool>
pub const fn full_cube(self) -> Option<bool>
pub const fn opaque_full_cube(self) -> Option<bool>
pub const fn side_solid_full(self) -> Option<u8>
pub const fn side_solid_center(self) -> Option<u8>
pub const fn side_solid_rigid(self) -> Option<u8>
pub const fn collision_shape(self) -> Option<&'static [[f64; 6]]>
pub const fn culling_shape(self) -> Option<&'static [[f64; 6]]>
Trait Implementations§
source§impl Clone for block_state
impl Clone for block_state
source§fn clone(&self) -> block_state
fn clone(&self) -> block_state
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for block_state
impl Debug for block_state
source§impl Display for block_state
impl Display for block_state
source§impl Hash for block_state
impl Hash for block_state
source§impl PartialEq for block_state
impl PartialEq for block_state
source§fn eq(&self, other: &block_state) -> bool
fn eq(&self, other: &block_state) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Write for block_state
impl Write for block_state
impl Copy for block_state
impl Eq for block_state
impl StructuralEq for block_state
impl StructuralPartialEq for block_state
Auto Trait Implementations§
impl RefUnwindSafe for block_state
impl Send for block_state
impl Sync for block_state
impl Unpin for block_state
impl UnwindSafe for block_state
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