mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-08-03 02:56:53 -04:00
Updated Component Generator (markdown)
parent
fd4d631fe8
commit
64691ec947
@ -5,12 +5,11 @@ Callbacks:
|
||||
- `count(): number`
|
||||
The current number of fuel items still in the generator.
|
||||
- `insert([count: number]): boolean[, string]`
|
||||
Inserts up to the specified number of fuel items from the currently selected inventory slot into the generator's inventory. Returns `true` if at least one item was moved to the generator's inventory. Returns `false` and an error message otherwise.
|
||||
|
||||
Possible error messages are:
|
||||
`"selected slot does not contain fuel"` if the selected slot has no item which can be burnt
|
||||
`"different fuel type already queued"` if there is already another type of item in the generator
|
||||
`"queue is full"` if there already are 64 items of that type in the generator
|
||||
Inserts up to the specified number of fuel items from the currently selected inventory slot into the generator's inventory. Returns `true` if at least one item was moved to the generator's inventory. Returns `false` and an error message otherwise.
|
||||
Possible error messages are:
|
||||
_"selected slot does not contain fuel"_ if the selected slot has no item which can be burnt
|
||||
_"different fuel type already queued"_ if there is already another type of item in the generator
|
||||
_"queue is full"_ if there already are 64 items of that type in the generator
|
||||
- `remove([count: number]): boolean`
|
||||
Removes up to the specified number of fuel items from the generator and places them into the currently selected slot or the first free slot after it. Returns `true` if at least on item was removed from the generator's inventory, `false` otherwise.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user