Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Basic list of methods provided by peripheral.getMethods():
- 1. condenseItems
- 2. expandStack
- 3. getBeeChildren
- 4. getDemandedEnergy
- 5. breedingProgress
- 6. destroyStack
- 7. swapStacks
- 8. pushItemIntoSlot
- 9. getEUSinkTier
- 10. getAdvancedMethodsData
- 11. canBreed
- 12. getMaxEnergyStored
- 13. listAllSpecies
- 14. getAllStacks
- 15. pushItem
- 16. getInventoryName
- 17. pullItem
- 18. getEnergyStored
- 19. getStackInSlot
- 20. listSources
- 21. getBeeBreedingData
- 22. getInventorySize
- 23. getDrone
- 24. getQueen
- 25. pullItemIntoSlot
- 26. doc
- 27. listMethods
- 28. getBeeParents
- 1. condenseItems
- Return Type: ()
- Description: Condense and tidy the stacks in an inventory
- Arguments:
- 2. expandStack
- Return Type: table
- Description: Get full stack information from id and/or damage
- Arguments:
- 1. stack
- Description:
- Type: openperipheral.adapter.types.NamedTupleType@4d92c4d9
- 3. getBeeChildren
- Return Type: table
- Description: Get possible mutations that can be created with given bee
- Arguments:
- 1. parentYpe
- Description: The type of bee you want the children for
- Type: openperipheral.adapter.types.SingleArgType@4f666d17
- 4. getDemandedEnergy
- Return Type: number
- Description: Get the maximum safe EU input
- Arguments:
- 5. breedingProgress
- Return Type: number
- Description: Breeding progress (in %)
- Arguments:
- 6. destroyStack
- Return Type: ()
- Description: Destroy a stack
- Arguments:
- 1. slotNumber
- Description: The slot number
- Type: openperipheral.adapter.types.SingleArgType@54dffb3f
- 7. 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
- 8. 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
- 9. getEUSinkTier
- Return Type: number
- Description: Determine the tier of this energy sink (1 = LV, 2 = MV, 3 = HV, 4 = EV)
- Arguments:
- 10. 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
- 11. canBreed
- Return Type: boolean
- Description: Can the bees breed?
- Arguments:
- 12. getMaxEnergyStored
- Return Type: number
- Description: Get the max energy stored in the machine.
- Arguments:
- 1. side
- Description: The direction you are interested in. (north, south, east, west, up or down)
- Type: openperipheral.adapter.types.BoundedType@503a2d8c
- 13. listAllSpecies
- Return Type: table
- Description: Get all known bees species
- Arguments:
- 14. 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
- 15. 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
- 16. getInventoryName
- Return Type: string
- Description: Get the name of this inventory
- Arguments:
- 17. 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
- 18. getEnergyStored
- Return Type: number
- Description: Get the energy stored in the machine.
- Arguments:
- 1. side
- Description: The direction you are interested in. (north, south, east, west, up or down)
- Type: openperipheral.adapter.types.BoundedType@468e40a6
- 19. 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
- 20. listSources
- Return Type: table
- Description: List all method sources
- Arguments:
- 21. getBeeBreedingData
- Return Type: table
- Description: Get the full breeding list thingy. Experimental!
- Arguments:
- 22. getInventorySize
- Return Type: number
- Description: Get the size of this inventory
- Arguments:
- 23. getDrone
- Return Type: table
- Description: Get the drone
- Arguments:
- 24. getQueen
- Return Type: table
- Description: Get the queen
- Arguments:
- 25. 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
- 26. doc
- Return Type: string
- Description: Brief description of method
- Arguments:
- 1. method
- Description:
- Type: openperipheral.adapter.types.SingleArgType@4f666d17
- 27. listMethods
- Return Type: string
- Description: List all the methods available
- Arguments:
- 1. filterSource
- Description:
- Type: openperipheral.adapter.types.SingleArgType@4f666d17
- 28. getBeeParents
- Return Type: table
- Description: Get possible mutations that results in given bee
- Arguments:
- 1. childType
- Description: The type of bee you want the parents for
- Type: openperipheral.adapter.types.SingleArgType@4f666d17
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement