Struct AttackRange
pub struct AttackRange {
pub min_reach: f32,
pub max_reach: f32,
pub min_creative_reach: f32,
pub max_creative_reach: f32,
pub hitbox_margin: f32,
pub mob_factor: f32,
}Fields§
§min_reach: f32§max_reach: f32§min_creative_reach: f32§max_creative_reach: f32§hitbox_margin: f32§mob_factor: f32Implementations§
§impl AttackRange
impl AttackRange
pub const fn new() -> AttackRange
Trait Implementations§
§impl AzBuf for AttackRange
impl AzBuf for AttackRange
fn azalea_write(&self, buf: &mut impl Write) -> Result<(), Error>
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<AttackRange, BufReadError>
§impl Clone for AttackRange
impl Clone for AttackRange
§fn clone(&self) -> AttackRange
fn clone(&self) -> AttackRange
Returns a duplicate 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 more§impl DataComponentTrait for AttackRange
impl DataComponentTrait for AttackRange
const KIND: DataComponentKind = DataComponentKind::AttackRange
§impl Debug for AttackRange
impl Debug for AttackRange
§impl Default for AttackRange
impl Default for AttackRange
§fn default() -> AttackRange
fn default() -> AttackRange
Returns the “default value” for a type. Read more
§impl DefaultableComponent for AttackRange
impl DefaultableComponent for AttackRange
fn default_for_item(item: ItemKind) -> Option<AttackRange>
§impl From<AttackRange> for DataComponentUnion
impl From<AttackRange> for DataComponentUnion
§fn from(value: AttackRange) -> DataComponentUnion
fn from(value: AttackRange) -> DataComponentUnion
Converts to this type from the input type.
§impl PartialEq for AttackRange
impl PartialEq for AttackRange
§impl Serialize for AttackRange
impl Serialize for AttackRange
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AttackRange
Auto Trait Implementations§
impl Freeze for AttackRange
impl RefUnwindSafe for AttackRange
impl Send for AttackRange
impl Sync for AttackRange
impl Unpin for AttackRange
impl UnsafeUnpin for AttackRange
impl UnwindSafe for AttackRange
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> DefaultableComponent for Twhere
T: DataComponentTrait,
impl<T> DefaultableComponent for Twhere
T: DataComponentTrait,
default fn default_for_item(_item: ItemKind) -> Option<T>
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> EncodableDataComponent for T
impl<T> EncodableDataComponent for T
§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates Self using default().
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
§impl<T> TypeData for T
impl<T> TypeData for T
§fn clone_type_data(&self) -> Box<dyn TypeData>
fn clone_type_data(&self) -> Box<dyn TypeData>
Creates a type-erased clone of this value.