Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Basic list of methods provided by peripheral.getMethods():
- 1. getInventoryName
- 2. pullItem
- 3. condenseItems
- 4. expandStack
- 5. getStackInSlot
- 6. listSources
- 7. getInventorySize
- 8. destroyStack
- 9. swapStacks
- 10. pushItemIntoSlot
- 11. getAdvancedMethodsData
- 12. pullItemIntoSlot
- 13. doc
- 14. listMethods
- 15. getAllStacks
- 16. pushItem
- 1. getInventoryName
- Return Type: string
- Description: Get the name of this inventory
- Arguments:
- 2. 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:
- 1. direction
- Description: The direction of the other inventory
- Type: openperipheral.adapter.types.BoundedType@4c2ad461
- 2. slot
- Description: The slot in the OTHER inventory that you're pulling from
- Type: openperipheral.adapter.types.SingleArgType@54dffb3f
- 3. maxAmount
- Description: The maximum amount of items you want to pull
- Type: openperipheral.adapter.types.SingleArgType@54dffb3f
- 4. intoSlot
- Description: The slot in the current inventory that you want to pull into
- Type: openperipheral.adapter.types.SingleArgType@54dffb3f
- 3. condenseItems
- Return Type: ()
- Description: Condense and tidy the stacks in an inventory
- Arguments:
- 4. expandStack
- Return Type: table
- Description: Get full stack information from id and/or damage
- Arguments:
- 1. stack
- Description:
- Type: openperipheral.adapter.types.NamedTupleType@4d92c4d9
- 5. getStackInSlot
- Return Type: object
- Description: Get details of an item in a particular slot
- Arguments:
- 1. slotNumber
- Description: Slot number
- Type: openperipheral.adapter.types.SingleArgType@54dffb3f
- 2. proxy
- Description: If true, method will return proxy instead of computing whole table
- Type: openperipheral.adapter.types.SingleArgType@6290c1a8
- 6. listSources
- Return Type: table
- Description: List all method sources
- Arguments:
- 7. getInventorySize
- Return Type: number
- Description: Get the size of this inventory
- Arguments:
- 8. destroyStack
- Return Type: ()
- Description: Destroy a stack
- Arguments:
- 1. slotNumber
- Description: The slot number
- Type: openperipheral.adapter.types.SingleArgType@54dffb3f
- 9. swapStacks
- Return Type: ()
- Description: Swap two slots in the inventory
- Arguments:
- 1. from
- Description: The first slot
- Type: openperipheral.adapter.types.SingleArgType@54dffb3f
- 2. to
- Description: The other slot
- Type: openperipheral.adapter.types.SingleArgType@54dffb3f
- 3. fromDirection
- Description:
- Type: openperipheral.adapter.types.BoundedType@572cf544
- 4. fromDirection
- Description:
- Type: openperipheral.adapter.types.BoundedType@f1caff2
- 10. pushItemIntoSlot
- Return Type: number
- Description: Push an item from the current inventory into pipe or slot on the other inventory. Returns the amount of items moved
- Arguments:
- 1. direction
- Description: The direction of the other inventory
- Type: openperipheral.adapter.types.BoundedType@6a342215
- 2. slot
- Description: The slot in the current inventory that you're pushing from
- Type: openperipheral.adapter.types.SingleArgType@54dffb3f
- 3. maxAmount
- Description: The maximum amount of items you want to push
- Type: openperipheral.adapter.types.SingleArgType@54dffb3f
- 4. intoSlot
- Description: The slot in the other inventory that you want to push into (ignored when target is pipe
- Type: openperipheral.adapter.types.SingleArgType@54dffb3f
- 11. getAdvancedMethodsData
- Return Type: table
- Description: Get a complete table of information about all available methods
- Arguments:
- 1. method
- Description:
- Type: openperipheral.adapter.types.SingleArgType@4f666d17
- 12. 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:
- 1. direction
- Description: The direction of the other inventory
- Type: openperipheral.adapter.types.BoundedType@4c2ad461
- 2. slot
- Description: The slot in the OTHER inventory that you're pulling from
- Type: openperipheral.adapter.types.SingleArgType@54dffb3f
- 3. maxAmount
- Description: The maximum amount of items you want to pull
- Type: openperipheral.adapter.types.SingleArgType@54dffb3f
- 4. intoSlot
- Description: The slot in the current inventory that you want to pull into
- Type: openperipheral.adapter.types.SingleArgType@54dffb3f
- 13. doc
- Return Type: string
- Description: Brief description of method
- Arguments:
- 1. method
- Description:
- Type: openperipheral.adapter.types.SingleArgType@4f666d17
- 14. listMethods
- Return Type: string
- Description: List all the methods available
- Arguments:
- 1. filterSource
- Description:
- Type: openperipheral.adapter.types.SingleArgType@4f666d17
- 15. getAllStacks
- Return Type: table
- Description: Get a table with all the items of the chest
- Arguments:
- 1. proxy
- Description: If false, method will compute whole table, instead of returning proxy
- Type: openperipheral.adapter.types.SingleArgType@6290c1a8
- 16. pushItem
- Return Type: number
- Description: Push an item from the current inventory into pipe or slot on the other inventory. Returns the amount of items moved
- Arguments:
- 1. direction
- Description: The direction of the other inventory
- Type: openperipheral.adapter.types.BoundedType@6a342215
- 2. slot
- Description: The slot in the current inventory that you're pushing from
- Type: openperipheral.adapter.types.SingleArgType@54dffb3f
- 3. maxAmount
- Description: The maximum amount of items you want to push
- Type: openperipheral.adapter.types.SingleArgType@54dffb3f
- 4. intoSlot
- Description: The slot in the other inventory that you want to push into (ignored when target is pipe
- Type: openperipheral.adapter.types.SingleArgType@54dffb3f
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement