class Rosegold::Block

Included Modules

Defined in:

rosegold/models/block.cr

Constructors

Instance Method Summary

Constructor Detail

def self.from_block_state_id(state_id : UInt16) : Block #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def best_tool?(slot : Slot) #

[View source]
def break_damage(main_hand : Slot, player : Player, creative : Bool = false) : Float64 #

[View source]
def break_time(main_hand : Slot, player : Player, creative : Bool = false) : Int32 #

[View source]
def can_harvest?(slot : Slot) #

[View source]
def default_state : UInt16 #

[View source]
def display_name : String #

[View source]
def hardness : Float32 #

[View source]
def harvest_tools : Hash(String, Bool) | Nil #

[View source]
def id : UInt16 #

[View source]
def id_str : String #

[View source]
def material : String #

[View source]
def material_tool_multipliers #

[View source]
def max_state_id : UInt16 #

[View source]
def min_state_id : UInt16 #

[View source]
def stack_size : UInt8 #

[View source]
def states : Array(MCData::BlockProperty) #

Not individual block states, but the properties that, in combination, make up each block state. Empty array if block has only one state.


[View source]