Rosegold::DataComponents::BlocksAttacks
Inherits Rosegold::DataComponent / Reference / Object
BlocksAttacks
Constructors
new(block_delay_seconds : Float32 = 0.0_f32, disable_cooldown_scale : Float32 = 1.0_f32, damage_reductions : Array(Rosegold::DataComponents::BlocksAttacks::DamageReduction) = [] of DamageReduction, item_damage_threshold : Float32 = 0.0_f32, item_damage_base : Float32 = 0.0_f32, item_damage_factor : Float32 = 0.0_f32, bypassed_by : Nil | String = nil, block_sound_raw : Slice(UInt8) | Nil = nil, disable_sound_raw : Slice(UInt8) | Nil = nil)
Sourceread(io) : self
SourceInstance methods
block_delay_seconds
Sourceblock_delay_seconds=(block_delay_seconds : Float32)
Sourceblock_sound_raw
Sourceblock_sound_raw=(block_sound_raw : Bytes | Nil)
Sourcebypassed_by
Sourcebypassed_by=(bypassed_by : String | Nil)
Sourcedamage_reductions
Sourcedamage_reductions=(damage_reductions : Array(DamageReduction))
Sourcedisable_cooldown_scale
Sourcedisable_cooldown_scale=(disable_cooldown_scale : Float32)
Sourcedisable_sound_raw
Sourcedisable_sound_raw=(disable_sound_raw : Bytes | Nil)
Sourceitem_damage_base
Sourceitem_damage_base=(item_damage_base : Float32)
Sourceitem_damage_factor
Sourceitem_damage_factor=(item_damage_factor : Float32)
Sourceitem_damage_threshold
Sourceitem_damage_threshold=(item_damage_threshold : Float32)
Sourcewrite(io) : Nil
Source