pub struct BlockBehavior {
pub friction: f32,
pub jump_factor: f32,
pub destroy_time: f32,
pub explosion_resistance: f32,
pub requires_correct_tool_for_drops: bool,
}
Fields§
§friction: f32
§jump_factor: f32
§destroy_time: f32
§explosion_resistance: f32
§requires_correct_tool_for_drops: bool
Implementations§
Source§impl BlockBehavior
impl BlockBehavior
pub fn new() -> Self
pub fn friction(self, friction: f32) -> Self
pub fn jump_factor(self, jump_factor: f32) -> Self
pub fn destroy_time(self, destroy_time: f32) -> Self
pub fn explosion_resistance(self, explosion_resistance: f32) -> Self
pub fn strength(self, destroy_time: f32, explosion_resistance: f32) -> Self
pub fn requires_correct_tool_for_drops(self) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BlockBehavior
impl RefUnwindSafe for BlockBehavior
impl Send for BlockBehavior
impl Sync for BlockBehavior
impl Unpin for BlockBehavior
impl UnwindSafe for BlockBehavior
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