Initial version of the new crafting table
This commit is contained in:
@@ -25,6 +25,8 @@ module.exports = class Item extends BaseModel
|
||||
|
||||
Object.defineProperty @prototype, 'isCraftable', get:-> @recipes.length > 0
|
||||
|
||||
Object.defineProperty @prototype, 'pathSlugs', get:-> @getPathSlugs()
|
||||
|
||||
# Public Methods ###############################################################################
|
||||
|
||||
addRecipe: (recipe)->
|
||||
@@ -38,6 +40,9 @@ module.exports = class Item extends BaseModel
|
||||
return if this.name < that.name then -1 else +1
|
||||
return 0
|
||||
|
||||
getPathSlugs: ->
|
||||
return modSlug:@modVersion.slug, itemSlug:@slug
|
||||
|
||||
# Object Overrides #############################################################################
|
||||
|
||||
toString: ->
|
||||
|
||||
Reference in New Issue
Block a user