Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- peripheral
- 1 | getInventoryName
- 2 | pullItem
- 3 | getEnergyStored
- 4 | condenseItems
- 5 | expandStack
- 6 | getDemandedEnergy
- 7 | getStackInSlot
- 8 | listSources
- 9 | getTankInfo
- 10 | getInventorySize
- 11 | swapStacks
- 12 | destroyStack
- 13 | getEUSinkTier
- 14 | pushItemIntoSlot
- 15 | getAdvancedMethodsData
- 16 | getMaxEnergyStored
- 17 | pullItemIntoSlot
- 18 | listMethods
- 19 | doc
- 20 | pushItem
- 21 | getAllStacks
- doc:
- returnTypes: string
- args:
- 1:
- type: openperipheral.adapter.types.SingleArgType@4d515cef
- name: method
- description:
- description: Brief description of method
- source: <meta>
- destroyStack:
- returnTypes: ()
- args:
- 1:
- type: openperipheral.adapter.types.SingleArgType@4ca3a3cf
- name: slotNumber
- description: The slot number
- description: Destroy a stack
- source: inventory
- listSources:
- returnTypes: table
- args:
- description: List all method sources
- source: <meta>
- getTankInfo:
- returnTypes: table
- args:
- 1:
- optional: true
- description: The internal direction of the tank. If you're not sure, use 'unknown' (north, south, east, west, up, down or unknown)
- type: openperipheral.adapter.types.BoundedType@21402b22
- name: direction
- description: A table of tanks will be returned, each with a table of information
- source: fluid_handler
- getEUSinkTier:
- returnTypes: number
- args:
- description: Determine the tier of this energy sink (1 = LV, 2 = MV, 3 = HV, 4 = EV)
- source: eu_sink
- getEnergyStored:
- returnTypes: number
- args:
- 1:
- optional: true
- description: The direction you are interested in. (north, south, east, west, up or down)
- type: openperipheral.adapter.types.BoundedType@7ead091c
- name: side
- description: Get the energy stored in the machine.
- source: rf_receiver
- pullItemIntoSlot:
- returnTypes: number
- args:
- 1:
- type: openperipheral.adapter.types.BoundedType@281860c1
- name: direction
- description: The direction of the other inventory
- 2:
- type: openperipheral.adapter.types.SingleArgType@4ca3a3cf
- name: slot
- description: The slot in the OTHER inventory that you're pulling from
- 3:
- optional: true
- description: The maximum amount of items you want to pull
- type: openperipheral.adapter.types.SingleArgType@4ca3a3cf
- name: maxAmount
- 4:
- optional: true
- description: The slot in the current inventory that you want to pull into
- type: openperipheral.adapter.types.SingleArgType@4ca3a3cf
- name: intoSlot
- description: Pull an item from a slot in another inventory into a slot in this one. Returns the amount of items moved
- source: inventory-world
- listMethods:
- returnTypes: string
- args:
- 1:
- optional: true
- description:
- type: openperipheral.adapter.types.SingleArgType@4d515cef
- name: filterSource
- description: List all the methods available
- source: <meta>
- getDemandedEnergy:
- returnTypes: number
- args:
- description: Get the maximum safe EU input
- source: eu_sink
- condenseItems:
- returnTypes: ()
- args:
- description: Condense and tidy the stacks in an inventory
- source: inventory
- getInventorySize:
- returnTypes: number
- args:
- description: Get the size of this inventory
- source: inventory
- getAllStacks:
- returnTypes: table
- args:
- 1:
- optional: true
- description: If false, method will compute whole table, instead of returning proxy
- type: openperipheral.adapter.types.SingleArgType@1c3d2351
- name: proxy
- description: Get a table with all the items of the chest
- source: inventory
- pushItemIntoSlot:
- returnTypes: number
- args:
- 1:
- type: openperipheral.adapter.types.BoundedType@1b181632
- name: direction
- description: The direction of the other inventory
- 2:
- type: openperipheral.adapter.types.SingleArgType@4ca3a3cf
- name: slot
- description: The slot in the current inventory that you're pushing from
- 3:
- optional: true
- description: The maximum amount of items you want to push
- type: openperipheral.adapter.types.SingleArgType@4ca3a3cf
- name: maxAmount
- 4:
- optional: true
- description: The slot in the other inventory that you want to push into (ignored when target is pipe
- type: openperipheral.adapter.types.SingleArgType@4ca3a3cf
- name: intoSlot
- description: Push an item from the current inventory into pipe or slot on the other inventory. Returns the amount of items moved
- source: inventory-world
- getInventoryName:
- returnTypes: string
- args:
- description: Get the name of this inventory
- source: inventory
- pushItem:
- returnTypes: number
- args:
- 1:
- type: openperipheral.adapter.types.BoundedType@1b181632
- name: direction
- description: The direction of the other inventory
- 2:
- type: openperipheral.adapter.types.SingleArgType@4ca3a3cf
- name: slot
- description: The slot in the current inventory that you're pushing from
- 3:
- optional: true
- description: The maximum amount of items you want to push
- type: openperipheral.adapter.types.SingleArgType@4ca3a3cf
- name: maxAmount
- 4:
- optional: true
- description: The slot in the other inventory that you want to push into (ignored when target is pipe
- type: openperipheral.adapter.types.SingleArgType@4ca3a3cf
- name: intoSlot
- description: Push an item from the current inventory into pipe or slot on the other inventory. Returns the amount of items moved
- source: inventory-world
- getStackInSlot:
- returnTypes: object
- args:
- 1:
- type: openperipheral.adapter.types.SingleArgType@4ca3a3cf
- name: slotNumber
- description: Slot number
- 2:
- optional: true
- description: If true, method will return proxy instead of computing whole table
- type: openperipheral.adapter.types.SingleArgType@1c3d2351
- name: proxy
- description: Get details of an item in a particular slot
- source: inventory
- getAdvancedMethodsData:
- returnTypes: table
- args:
- 1:
- optional: true
- description:
- type: openperipheral.adapter.types.SingleArgType@4d515cef
- name: method
- description: Get a complete table of information about all available methods
- source: <meta>
- swapStacks:
- returnTypes: ()
- args:
- 1:
- type: openperipheral.adapter.types.SingleArgType@4ca3a3cf
- name: from
- description: The first slot
- 2:
- type: openperipheral.adapter.types.SingleArgType@4ca3a3cf
- name: to
- description: The other slot
- 3:
- optional: true
- description:
- type: openperipheral.adapter.types.BoundedType@7dfdc5fe
- name: fromDirection
- 4:
- optional: true
- description:
- type: openperipheral.adapter.types.BoundedType@5ce98f64
- name: fromDirection
- description: Swap two slots in the inventory
- source: inventory
- getMaxEnergyStored:
- returnTypes: number
- args:
- 1:
- optional: true
- description: The direction you are interested in. (north, south, east, west, up or down)
- type: openperipheral.adapter.types.BoundedType@40ffe8ab
- name: side
- description: Get the max energy stored in the machine.
- source: rf_receiver
- expandStack:
- returnTypes: table
- args:
- 1:
- type: openperipheral.adapter.types.NamedTupleType@3ff3c8c5
- name: stack
- description:
- description: Get full stack information from id and/or damage
- source: inventory
- pullItem:
- returnTypes: number
- args:
- 1:
- type: openperipheral.adapter.types.BoundedType@281860c1
- name: direction
- description: The direction of the other inventory
- 2:
- type: openperipheral.adapter.types.SingleArgType@4ca3a3cf
- name: slot
- description: The slot in the OTHER inventory that you're pulling from
- 3:
- optional: true
- description: The maximum amount of items you want to pull
- type: openperipheral.adapter.types.SingleArgType@4ca3a3cf
- name: maxAmount
- 4:
- optional: true
- description: The slot in the current inventory that you want to pull into
- type: openperipheral.adapter.types.SingleArgType@4ca3a3cf
- name: intoSlot
- description: Pull an item from a slot in another inventory into a slot in this one. Returns the amount of items moved
- source: inventory-world
Add Comment
Please, Sign In to add comment