class

Rosegold::DataComponents::Tool

Inherits Rosegold::DataComponent / Reference / Object

Tool component

Constructors

new(rules : Array(Rosegold::DataComponents::Tool::ToolRule) = [] of ToolRule, default_mining_speed : Float32 = 1.0_f32, damage_per_block : UInt32 = 1_u32, can_destroy_blocks_in_creative : Bool = true)
Source
read(io) : self
Source

Instance methods

can_destroy_blocks_in_creative=(can_destroy_blocks_in_creative : Bool)
Source
can_destroy_blocks_in_creative?
Source
damage_per_block
Source
damage_per_block=(damage_per_block : UInt32)
Source
default_mining_speed
Source
default_mining_speed=(default_mining_speed : Float32)
Source
rules
Source
rules=(rules : Array(ToolRule))
Source
write(io) : Nil
Source

Nested types