pub struct BlockData {
pub hardness: Option<f32>,
pub resistance: f32,
pub diggable: bool,
pub transparent: bool,
pub emit_light: u8,
pub filter_light: u8,
pub friction: f32,
pub speed_factor: f32,
pub jump_factor: f32,
pub flags: u32,
pub kind: BlockKind,
pub offset: Option<(f32, f32, bool)>,
}Expand description
Static per-block data (jar values for everything movement reads).
Fields§
§hardness: Option<f32>Destroy time (minecraft-data; None = unbreakable).
resistance: f32Explosion resistance (minecraft-data).
diggable: boolCan be mined (minecraft-data).
transparent: boolLets light through (minecraft-data).
emit_light: u8Light emitted (minecraft-data).
filter_light: u8Light filtered (minecraft-data).
friction: f32Block.getFriction() (jar).
speed_factor: f32Block.getSpeedFactor() (jar).
jump_factor: f32Block.getJumpFactor() (jar).
flags: u32block_flags bits.
kind: BlockKindSpecial movement behaviour.
offset: Option<(f32, f32, bool)>Model offset function: (max horizontal, max vertical, xyz); bamboo and pointed dripstone
shift their collision shape by it.
Trait Implementations§
impl Copy for BlockData
impl StructuralPartialEq for BlockData
Auto Trait Implementations§
impl Forget for BlockData
impl Freeze for BlockData
impl Move for BlockData
impl RefUnwindSafe for BlockData
impl Send for BlockData
impl Sync for BlockData
impl Unpin for BlockData
impl UnsafeUnpin for BlockData
impl UnwindSafe for BlockData
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