This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
api:robot [2017/02/22 03:18] nox typo |
api:robot [2018/09/27 02:19] payonel [Slot alignment] |
||
---|---|---|---|
Line 9: | Line 9: | ||
==== Slot alignment ==== | ==== Slot alignment ==== | ||
- | The Robot's GUI displays the slots of a robot aligned from top-left to bottom-right. So for example the slot at index 1 is displayed in the top-left corner, the slot at index 2 is the next to the right and the first slot on the 2nd row is index 5. | + | {{page>component:inventory_slots&noheader&nofooter}} |
- | + | ||
- | {{api:robot_slotalign.png}} | + | |
- | + | ||
- | How many slots a robot has available depends on it's setup. If a slot is specified in a function that exceeds the amount of slots a robot has available an error is thrown. | + | |
==== Movement ==== | ==== Movement ==== | ||
Line 35: | Line 30: | ||
[[https://github.com/MightyPirates/OpenComputers/issues/1113#issuecomment-97731965|source]] | [[https://github.com/MightyPirates/OpenComputers/issues/1113#issuecomment-97731965|source]] | ||
- | ==== Callbacks ==== | + | |
+ | ==== API Exclusive Methods ==== | ||
- `robot.name(): string` | - `robot.name(): string` | ||
Line 199: | Line 195: | ||
- `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}} |