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 Both sides next revision
tutorial:modding_onefour [2014/10/10 18:15]
sangar
tutorial:modding_onefour [2014/10/10 19:45]
sangar
Line 122: Line 122:
 - `li.cil.oc.api.driver.Item.slot(ItemStack)`  ​ - `li.cil.oc.api.driver.Item.slot(ItemStack)`  ​
   Now returns a String instead of using the `Slot` enum (which has been removed).  ​   Now returns a String instead of using the `Slot` enum (which has been removed).  ​
-  //How to adjust//: return string name of the slot type. Built-in types are`card`, `component_bus`,​ `container`,​ `cpu`, `floppy`, `hdd`, `memory`, `tablet`, `tool`, `upgrade`.+  //How to adjust//: return string name of the slot type. Built-in types are listed in `li.cil.oc.api.driver.item.Slot`.
  
 - `li.cil.oc.api.driver.NamedBlock.priority()`  ​ - `li.cil.oc.api.driver.NamedBlock.priority()`  ​
Line 134: Line 134:
 - `li.cil.oc.api.driver.item.Container.providedSlot(ItemStack)`  ​ - `li.cil.oc.api.driver.item.Container.providedSlot(ItemStack)`  ​
   Now returns a String instead of using the `Slot` enum (which has been removed).  ​   Now returns a String instead of using the `Slot` enum (which has been removed).  ​
-  //How to adjust//: return string name of the slot type. Built-in types are`card`, `component_bus`,​ `container`,​ `cpu`, `floppy`, `hdd`, `memory`, `tablet`, `tool`, `upgrade`.+  //How to adjust//: return string name of the slot type. Built-in types are listed in `li.cil.oc.api.driver.item.Slot`.
  
 - `li.cil.oc.api.machine.Machine.owner()`  ​ - `li.cil.oc.api.machine.Machine.owner()`  ​
Line 160: Line 160:
  
 - `li.cil.oc.api.driver.Slot`  ​ - `li.cil.oc.api.driver.Slot`  ​
-  The slot enum has gone, slot types are now simply strings. This allows much more flexibility,​ at the cost of potential typos and having to look up which slots actually exist (sorry for that). The built-in slot types are at the time of writing: ​`card`, `component_bus`,​ `container`,​ `cpu`, `floppy`, `hdd`, `memory`, `tool`, `upgrade`.  ​+  The slot enum has gone, slot types are now simply strings. This allows much more flexibility,​ at the cost of potential typos and having to look up which slots actually exist (sorry for that). The built-in slot types are listed in `li.cil.oc.api.driver.item.Slot`.  ​
   //How to adjust//: wwitch to the according string equivalents of the of old enum values.   //How to adjust//: wwitch to the according string equivalents of the of old enum values.