pub struct Tool {
pub rules: Vec<ToolRule>,
pub default_mining_speed: f32,
pub damage_per_block: i32,
pub can_destroy_blocks_in_creative: bool,
}Fields§
§rules: Vec<ToolRule>§default_mining_speed: f32§damage_per_block: i32§can_destroy_blocks_in_creative: boolImplementations§
Trait Implementations§
Source§impl AzaleaRead for Tool
impl AzaleaRead for Tool
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
Source§impl AzaleaWrite for Tool
impl AzaleaWrite for Tool
Source§impl DataComponentTrait for Tool
impl DataComponentTrait for Tool
const KIND: DataComponentKind = DataComponentKind::Tool
Source§impl DefaultableComponent for Tool
impl DefaultableComponent for Tool
fn default_for_item(item: Item) -> Option<Self>
Source§impl From<Tool> for DataComponentUnion
impl From<Tool> for DataComponentUnion
impl StructuralPartialEq for Tool
Auto Trait Implementations§
impl Freeze for Tool
impl RefUnwindSafe for Tool
impl Send for Tool
impl Sync for Tool
impl Unpin for Tool
impl UnwindSafe for Tool
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