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
api:robot [2016/04/14 23:10]
xarses add initial movement information
api:robot [2018/09/27 02:02]
payonel
Line 34: Line 34:
 You can install hover upgrades to increase (tier 1) and pretty much circumvent (tier 2) this limitation. Or you can disable this in the config, by setting `limitFlightHeight` to 256 or so. You can install hover upgrades to increase (tier 1) and pretty much circumvent (tier 2) this limitation. Or you can disable this in the config, by setting `limitFlightHeight` to 256 or so.
  
-[[https://​github.com/​MightyPirates/​OpenComputers/​issues/​1113#​issuecomment-97731965|foo]] +[[https://​github.com/​MightyPirates/​OpenComputers/​issues/​1113#​issuecomment-97731965|source]] 
-==== Callbacks ​====+ 
 +==== API Exclusive Methods ​====
  
 - `robot.name():​ string`  ​ - `robot.name():​ string`  ​
Line 68: Line 69:
 **count** - if specified only up to this many items are moved, otherwise the entire stack is moved.  ​ **count** - if specified only up to this many items are moved, otherwise the entire stack is moved.  ​
 **Returns** `true` if exchanging the content between those slots was successful, `false` otherwise.  ​ **Returns** `true` if exchanging the content between those slots was successful, `false` otherwise.  ​
-If there are items in the target slot then this function attempts to swap the items in those slots. This only succeeds if you move all slots away from the current slot or if the current slot was empty anyways.  ​+If there are items in the target slot then this function attempts to swap the items in those slots. This only succeeds if you move all items away from the current slot or if the current slot was empty anyways.  ​
 Note that this will always return true if the specified slot is the same as the currently selected slot, or if both slots are empty, even though no items are effectively moved. Note that this will always return true if the specified slot is the same as the currently selected slot, or if both slots are empty, even though no items are effectively moved.
 - `robot.compareTo(slot:​ number): boolean`  ​ - `robot.compareTo(slot:​ number): boolean`  ​
Line 199: Line 200:
 - `robot.fillDown([count:​number]):​boolean`  ​ - `robot.fillDown([count:​number]):​boolean`  ​
   Like `fill`, but operates on the block below the robot.   Like `fill`, but operates on the block below the robot.
-  ​+
 Contents Contents
 ----------- -----------
 {{page>​api:​contents&​noheader&​noeditbutton&​nouser&​nofooter}} {{page>​api:​contents&​noheader&​noeditbutton&​nouser&​nofooter}}