class

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)
Source
read(io) : self
Source

Instance methods

block_delay_seconds
Source
block_delay_seconds=(block_delay_seconds : Float32)
Source
block_sound_raw
Source
block_sound_raw=(block_sound_raw : Bytes | Nil)
Source
bypassed_by
Source
bypassed_by=(bypassed_by : String | Nil)
Source
damage_reductions
Source
damage_reductions=(damage_reductions : Array(DamageReduction))
Source
disable_cooldown_scale
Source
disable_cooldown_scale=(disable_cooldown_scale : Float32)
Source
disable_sound_raw
Source
disable_sound_raw=(disable_sound_raw : Bytes | Nil)
Source
item_damage_base
Source
item_damage_base=(item_damage_base : Float32)
Source
item_damage_factor
Source
item_damage_factor=(item_damage_factor : Float32)
Source
item_damage_threshold
Source
item_damage_threshold=(item_damage_threshold : Float32)
Source
write(io) : Nil
Source

Nested types