Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
imc [2014/08/29 22:02]
sangar
imc [2014/08/30 18:34]
sangar [Inventory Layout]
Line 42: Line 42:
 - 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).
-- Slot validator: `boolean validate(IInventory inventory, int slot, ItemStack stack)` ​  +- Slot validator: `boolean validate(IInventory inventory, int slot, int tier, ItemStack stack)` ​  
-  Where `inventory` is the inventory of the assembler, `slot` is the slot index the item stack `stack` should be inserted into.+  Where `inventory` is the inventory of the assembler, `slot` is the slot index the item stack `stack` should be inserted into, and `tier` is the tier specified in template'​s NBT for the slot.
  
 Inventory Layout Inventory Layout
Line 50: Line 50:
  
 - 0: The "base item" that was used to select the template, e.g. a computer case. - 0: The "base item" that was used to select the template, e.g. a computer case.
-- 1-9Components+- 1-3Containers
-10-18Upgrades+4-12Components
-19-21: Containers.+13-21: Upgrades.
  
 Slot Types and Tiers Slot Types and Tiers