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: top
- Type: ender_chest
- ender_chest method list:
- swapStacks
- getInventoryName
- setColours
- destroyStack
- pushItem
- setColorNames
- getAdvancedMethodsData
- setColors
- getInventorySize
- getColorNames
- setFrequency
- pushItemIntoSlot
- getStackInSlot
- getAllStacks
- getColors
- listMethods
- getFrequency
- getColours
- pullItem
- condenseItems
- pullItemIntoSlot
- Open Peripherals Advanced Method Data
- 1. setColorNames
- Return Type:
- Description: Set the frequency of this chest or tank
- Arguments: setColorNames(color_left, color_middle, color_right)
- 1. color_left
- Description:
- Type: STRING
- 2. color_middle
- Description:
- Type: STRING
- 3. color_right
- Description:
- Type: STRING
- 2. listMethods
- Return Type: STRING
- Description: List all the methods available
- Arguments: listMethods()
- No Arguments
- 3. 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
- 4. getColours
- Return Type: NUMBER, NUMBER, NUMBER
- Description: Get the colours active on this chest or tank
- Arguments: getColours()
- No Arguments
- 5. getColorNames
- Return Type: STRING, STRING, STRING
- Description: Get the colours active on this chest or tank
- Arguments: getColorNames()
- No Arguments
- 6. 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
- 7. 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
- 8. setColors
- Return Type: VOID
- Description: Set the frequency of this chest or tank
- Arguments: setColors(color_left, color_middle, color_right)
- 1. color_left
- Description: The first color
- Type: NUMBER
- 2. color_middle
- Description: The second color
- Type: NUMBER
- 3. color_right
- Description: The third color
- Type: NUMBER
- 9. condenseItems
- Return Type: VOID
- Description: Condense and tidy the stacks in an inventory
- Arguments: condenseItems()
- No Arguments
- 10. setFrequency
- Return Type: VOID
- Description: Set the frequency of this chest or tank
- Arguments: setFrequency(frequency)
- 1. frequency
- Description: A single color that represents all three colours on this chest or tank
- Type: NUMBER
- 11. getInventorySize
- Return Type: NUMBER
- Description: Get the size of this inventory
- Arguments: getInventorySize()
- No Arguments
- 12. getAllStacks
- Return Type: TABLE
- Description: Get a table with all the items of the chest
- Arguments: getAllStacks()
- No Arguments
- 13. getInventoryName
- Return Type: STRING
- Description: Get the name of this inventory
- Arguments: getInventoryName()
- No Arguments
- 14. 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
- 15. 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
- 16. 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
- 17. setColours
- Return Type: VOID
- Description: Set the frequency of this chest or tank
- Arguments: setColours(color_left, color_middle, color_right)
- 1. color_left
- Description: The first color
- Type: NUMBER
- 2. color_middle
- Description: The second color
- Type: NUMBER
- 3. color_right
- Description: The third color
- Type: NUMBER
- 18. 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
- 19. getAdvancedMethodsData
- Return Type: TABLE
- Description: Get a complete table of information about all available methods
- Arguments: getAdvancedMethodsData()
- No Arguments
- 20. getFrequency
- Return Type: TABLE
- Description: Get the frequency of this chest or tank
- Arguments: getFrequency()
- No Arguments
- 21. getColors
- Return Type: NUMBER, NUMBER, NUMBER
- Description: Get the colours active on this chest or tank
- Arguments: getColors()
- No Arguments
- --------------------
- 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