Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
tutorial:modding_imc [2015/04/23 16:10]
sangar
tutorial:modding_imc [2015/04/23 17:45] (current)
sangar
Line 39: Line 39:
 - Template selector: `boolean select(ItemStack stack)` - Template selector: `boolean select(ItemStack stack)`
 - Build validator: `Object[] validate(IInventory inventory)`  ​ - Build validator: `Object[] validate(IInventory inventory)`  ​
-  Values in the returned array: a boolean indicating whether the current configuration is valid for assembly, ​a string ​to display in the progress bar and a string ​array of lines to display in the assemble button tooltip. All are optional, defaulting to false, null and empty, respectively.+  Values in the returned array: a boolean indicating whether the current configuration is valid for assembly, ​an IChatComponent ​to display in the progress bar and an IChatComponent ​array of lines to display in the assemble button tooltip. All are optional, defaulting to false, null and empty, respectively.
 - Assembly callback: `Object[] assemble(IInventory inventory)`  ​ - Assembly callback: `Object[] assemble(IInventory inventory)`  ​
   Values in the returned array: the ItemStack to produce and a Double value, indicating the energy to consume (and thus the time it takes to build the object).   Values in the returned array: the ItemStack to produce and a Double value, indicating the energy to consume (and thus the time it takes to build the object).