Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- METHODMAN: Practical display for in game documentation of computercraft + addons
- Peripheral found
- Side: bottom
- Type: peripheral
- peripheral method list:
- swapStacks
- getInventoryName
- destroyStack
- pushItem
- getAdvancedMethodsData
- getInventorySize
- pushItemIntoSlot
- getMaxEnergyStored
- getStackInSlot
- getAllStacks
- listMethods
- pullItem
- condenseItems
- pullItemIntoSlot
- getEnergyStored
- Open Peripherals Advanced Method Data
- 1. getMaxEnergyStored
- Return Type: NUMBER
- Description: Get the max energy stored in the machine.
- Arguments: getMaxEnergyStored(slot)
- 1. slot
- Description: The direction you are interested in. (north, south, east, west, up or down)
- Type: STRING
- 2. getStackInSlot
- Return Type: TABLE
- Description: Get details of an item in a particular slot
- Arguments: getStackInSlot(slotNumber)
- 1. slotNumber
- Description: The slot number, from 1 to the max amount of slots
- Type: NUMBER
- 3. getAllStacks
- Return Type: TABLE
- Description: Get a table with all the items of the chest
- Arguments: getAllStacks()
- No Arguments
- 4. getInventorySize
- Return Type: NUMBER
- Description: Get the size of this inventory
- Arguments: getInventorySize()
- No Arguments
- 5. swapStacks
- Return Type:
- Description: Swap two slots in the inventory
- Arguments: swapStacks(from, to, fromDirection, fromDirection)
- 1. from
- Description: The first slot
- Type: NUMBER
- 2. to
- Description: The other slot
- Type: NUMBER
- 3. fromDirection
- Description:
- Type: STRING
- 4. fromDirection
- Description:
- Type: STRING
- 6. pullItemIntoSlot
- Return Type: NUMBER
- Description: Pull an item from a slot in another inventory into a slot in this one. Returns the amount of items moved
- Arguments: pullItemIntoSlot(direction, slot, maxAmount, intoSlot)
- 1. direction
- Description: The direction of the other inventory. (north, south, east, west, up or down)
- Type: STRING
- 2. slot
- Description: The slot in the OTHER inventory that you're pulling from
- Type: NUMBER
- 3. maxAmount
- Description: The maximum amount of items you want to pull
- Type: NUMBER
- 4. intoSlot
- Description: The slot in the current inventory that you want to pull into
- Type: NUMBER
- 7. getAdvancedMethodsData
- Return Type: TABLE
- Description: Get a complete table of information about all available methods
- Arguments: getAdvancedMethodsData()
- No Arguments
- 8. getEnergyStored
- Return Type: NUMBER
- Description: Get the energy stored in the machine.
- Arguments: getEnergyStored(slot)
- 1. slot
- Description: The direction you are interested in. (north, south, east, west, up or down)
- Type: STRING
- 9. condenseItems
- Return Type: VOID
- Description: Condense and tidy the stacks in an inventory
- Arguments: condenseItems()
- No Arguments
- 10. listMethods
- Return Type: STRING
- Description: List all the methods available
- Arguments: listMethods()
- No Arguments
- 11. getInventoryName
- Return Type: STRING
- Description: Get the name of this inventory
- Arguments: getInventoryName()
- No Arguments
- 12. destroyStack
- Return Type: VOID
- Description: Destroy a stack
- Arguments: destroyStack(slotNumber)
- 1. slotNumber
- Description: The slot number, from 1 to the max amount of slots
- Type: NUMBER
- 13. pullItem
- Return Type: NUMBER
- Description: Pull an item from a slot in another inventory into a slot in this one. Returns the amount of items moved
- Arguments: pullItem(direction, slot, maxAmount, intoSlot)
- 1. direction
- Description: The direction of the other inventory. (north, south, east, west, up or down)
- Type: STRING
- 2. slot
- Description: The slot in the OTHER inventory that you're pulling from
- Type: NUMBER
- 3. maxAmount
- Description: The maximum amount of items you want to pull
- Type: NUMBER
- 4. intoSlot
- Description: The slot in the current inventory that you want to pull into
- Type: NUMBER
- 14. pushItem
- Return Type: NUMBER
- Description: Push an item from the current inventory into slot on the other one. Returns the amount of items moved
- Arguments: pushItem(direction, slot, maxAmount, intoSlot)
- 1. direction
- Description: The direction of the other inventory. (north, south, east, west, up or down)
- Type: STRING
- 2. slot
- Description: The slot in the current inventory that you're pushing from
- Type: NUMBER
- 3. maxAmount
- Description: The maximum amount of items you want to push
- Type: NUMBER
- 4. intoSlot
- Description: The slot in the other inventory that you want to push into
- Type: NUMBER
- 15. pushItemIntoSlot
- Return Type: NUMBER
- Description: Push an item from the current inventory into slot on the other one. Returns the amount of items moved
- Arguments: pushItemIntoSlot(direction, slot, maxAmount, intoSlot)
- 1. direction
- Description: The direction of the other inventory. (north, south, east, west, up or down)
- Type: STRING
- 2. slot
- Description: The slot in the current inventory that you're pushing from
- Type: NUMBER
- 3. maxAmount
- Description: The maximum amount of items you want to push
- Type: NUMBER
- 4. intoSlot
- Description: The slot in the other inventory that you want to push into
- Type: NUMBER
- --------------------
- All actual documentation is written by the mod developer who made the peripheral, not me. I just displayed it - happy computercrafting
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement