Complete the Crafting Table view/controller
* Add output box to the crafting table view * Add remaining crafting patterns to all MC 1.7.10 recipes * Add all crafting patterns to Buildcraft 6.2.6 * Disable mods which don't have patterns yet * Add the Url constants for computing urls from templates * Add the `findItemDisplay` to ModPack (along with tests) and remove all replace all uses of `getPathSlugs` with it
This commit is contained in:
@@ -26,6 +26,8 @@ module.exports = class CraftingTable extends BaseModel
|
||||
hasNextStep: { get:@hasNextStep }
|
||||
hasPrevStep: { get:@hasPrevStep }
|
||||
hasSteps: { get:@hasSteps }
|
||||
multiplier: { get:@getMultiplier }
|
||||
output: { get:@getOutput }
|
||||
step: { get:@getStep, set:@setStep }
|
||||
toolNames: { get:@getToolNames }
|
||||
}
|
||||
@@ -46,6 +48,19 @@ module.exports = class CraftingTable extends BaseModel
|
||||
hasPrevStep: ->
|
||||
return @_step > 0
|
||||
|
||||
hasSteps: ->
|
||||
return @_steps.length > 0
|
||||
|
||||
getMultiplier: ->
|
||||
step = @_steps[@_step]
|
||||
return unless step?
|
||||
return step.multiplier
|
||||
|
||||
getOutput: ->
|
||||
step = @_steps[@_step]
|
||||
return unless step?
|
||||
return step.recipe.output[0]
|
||||
|
||||
getStep: ->
|
||||
return @_step
|
||||
|
||||
@@ -58,9 +73,6 @@ module.exports = class CraftingTable extends BaseModel
|
||||
|
||||
return this
|
||||
|
||||
hasSteps: ->
|
||||
return @_steps.length > 0
|
||||
|
||||
getToolNames: ->
|
||||
recipe = @_steps[@_step]?.recipe
|
||||
return '' unless recipe?
|
||||
|
||||
Reference in New Issue
Block a user