Universal Interface
The Universally Interface in an Computer controlled proxy for item, fluids and energy. All sides are reconfigurable. Note: The Universal Side allows fluid input and output, the fluid input side only allows input. The sides that allow fluid output(Universal and fluid output) output automaticly into adjecent fluid container.
Get Help about an function
- string the name of the function you need help with
- table an help like this
Lists all function of this peripheral
- table An table filled with the names of all function
Returns an description of the peripheral
- string An description what the peripheral does
Sets the maximum amount of energy that goes out on the specified side
- number The new amount of maximum energy output
- string The side where the maximum energy output should be changed(valid inputs: bottom, top, left, right, back, front)
Sets the maximum amount of energy that goes in
- number The new amount of maximum energy input
- string The side where the maximum energy input should be changed(valid inputs: bottom, top, left, right, back, front)
Returns the maximum amount of energy that goes out
- string The side where you want to get the maximum energy output(valid inputs: bottom, top, left, right, back, front)
- number The current maximum amount of energy that goes out
Returns the maximum amount of energy that will goes in
- string The side where you want to get the maximum energy input(valid inputs: bottom, top, left, right, back front)
- number The current maximum amount of energy that comes in
Returns the current amount of stored energy
- number The current amount of stored energy
Return the maximum amount of energy that can be stored
- number The maximum amount of energy that can be stored
Returns the current hold stack
- table An table which holds informations about the item, or nil if no item is in inventory
Pushs the currently holded stack into an external inventory. This function works inpendently from the side config
- string The direction, where the items should be pushed(valid inputs: front, back, left, right, top, bottom)
- string Only used if you want to simulate that the item was push from an specific direction, if you don’t simply insert in this argument a empty string then it will use the real direction from where the items come(valid inputs: [a empty string], bottom, top, east, west, south, north)
- number The maximum amount of items you want to tranfer. If you give 0 or less it will simply take the current stack size
- bool True if items where transfered, otherwise false
Pulls the first stack it gets from an inventory which stands on the given side into it’s own inventory. This function works inpendently from the side config
- string The direction from where the items should be sucked(valid inputs: front, back, left, right, top, bottom)
- string Only used if you want to simulate that the item was pulled from an specific direction, if you don’t simply insert in this argument a empty string then it will use the real direction from where the items come(valid inputs: [a empty string], bottom, top, east, west, south, north
- number The maximum amount of items that will be sucked from the inventory. If you give 0 or less it will pulls one stack of the first item it finds
- bool True if items where transfered, otherwise false
- table The pulled stack, or nil if nothing could be pulled
Sets if the Universal Interface allows that other blocks insert items
- bool The new value
Returns if the Universal Interface allows that other blocks insert items
- bool True if it is allowed
Sets the IO configuration on a specific side
- string The side where the configuration should be changed(valid inputs: front, back, right, left, top, bottom)
- string The new configuration (valid inputs: neutral, universal, items, energy, fluidInput, fluidOutput)
Returns an table which contains the IO configuration
- table A table which is in the format { “side” : “configuration” }
Returns information about the current held fluid and it’s amount
- table An table which contains informations about the internal fluid tank or nil, if the tank is empty
Fills the specified amount of fluid into an container on the given side. This function works inpendently from the side config
- string The side where the fluid container is standing(valid inputs: front, back, right, left, top, bottom)
- string If the inventory requires that the fluid should enter from an specific side you can use this argument. Leafe a empty string to just take the direction where the UI is located. Valid inputs: [empty string], bottom, top, east, west, south, north
- number The amount of fluid in milibuckets(1000 mb = 1 Bucket). Has to be more than 0 and 4000 or less
- bool If true, no fluid will be inserted if there is not enough place in the target or not enogh fluid there. Usefull to prevent that half of the fluid is already inserted while the other half is still in the UI
- bool True, if some fluid was sucessfull transfered or if cancelOnError true is if the whole specified amount of fluid was sucessfully transferred
Drains fluid of a fluid container on the specified side. This function works inpendently from the side config
- string The side where the fluid container is standing(valid inputs: front, back, right, left, top, bottom)
- string If the inventory requires that the fluid should enter from an specific side you can use this argument. Leafe a empty string to just take the direction where the UI is located. Valid inputs: [empty string], bottom, top, east, west, south, north
- number The amount of fluid in milibuckets(1000 mb = 1 Bucket). Has to be more than 0 and 4000 or less
- bool If true, no fluid will be drained if there is not enough place in the UI or not enough fluid there. Usefull to prevent that half of the fluid is already drained while the other half is still in the other container
- bool True, if some fluid was sucessfull transfered or if cancelOnError true is if the whole specified amount of fluid was sucessfully transferred
- table The Informations about what fluid was drained and it’s amount
Works exactly like peripheral.wrap(side), the only different is that it works based of the Unversal Interface position and rotation
- string The side where the peripheral is located
- table The wrapped peripheral