pub struct MobAttributes {
pub max_health: Option<f64>,
pub attack_damage: Option<f64>,
pub movement_speed: Option<f64>,
pub follow_range: Option<f64>,
}Expand description
Attribute overrides for a wave mob (DSL v0.4). Each field maps to a 1.21.11
minecraft: attribute component; an unset field keeps the vanilla base value.
Fields§
§max_health: Option<f64>minecraft:max_health base value.
attack_damage: Option<f64>minecraft:attack_damage base value.
movement_speed: Option<f64>minecraft:movement_speed base value.
follow_range: Option<f64>minecraft:follow_range base value.
Trait Implementations§
Source§impl Clone for MobAttributes
impl Clone for MobAttributes
impl Copy for MobAttributes
Source§impl Debug for MobAttributes
impl Debug for MobAttributes
Source§impl<'de> Deserialize<'de> for MobAttributes
impl<'de> Deserialize<'de> for MobAttributes
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for MobAttributes
impl JsonSchema for MobAttributes
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for MobAttributes
impl PartialEq for MobAttributes
Source§impl Serialize for MobAttributes
impl Serialize for MobAttributes
impl StructuralPartialEq for MobAttributes
Auto Trait Implementations§
impl Freeze for MobAttributes
impl RefUnwindSafe for MobAttributes
impl Send for MobAttributes
impl Sync for MobAttributes
impl Unpin for MobAttributes
impl UnsafeUnpin for MobAttributes
impl UnwindSafe for MobAttributes
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