class Rosegold::MCData::Enchantment

Overview

entries of enchantments.json

Included Modules

Defined in:

rosegold/world/mcdata.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(id : UInt32, name : String, display_name : String, max_level : UInt8, treasure_only : Bool, curse : Bool, category : String, weight : UInt8, tradeable : Bool, discoverable : Bool) #

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

[View source]

Instance Method Detail

def category : String #

[View source]
def curse? : Bool #

[View source]
def discoverable? : Bool #

[View source]
def display_name : String #

[View source]
def id : UInt32 #

[View source]
def max_level : UInt8 #

[View source]
def name : String #

[View source]
def tradeable? : Bool #

[View source]
def treasure_only? : Bool #

[View source]
def weight : UInt8 #

[View source]