Differences

This shows you the differences between two versions of the page.

Link to this comparison view

component:netsplitter [2018/10/12 08:59] (current)
payonel created
Line 1: Line 1:
 +Component: Net Splitter
 +================
 +This component is provided by the [[block:​net_splitter|Net Splitter]].
  
 +The net splitter connects networks, just like a cable. But the net splitter faces can be opened or closed, separating networks. A redstone signal inverts the faces. A scrench can be used to open/close a face. The net splitter also has an api to configure the faces.
 +
 +Component name: `net_splitter`.  ​
 +Callbacks:
 +
 +- `open(side: number):​number`  ​
 +  Open the side, returns true if it changed to open.
 +- `close():​number`  ​
 +  Close the side, returns true if it changed to close.
 +- `getSides():​table`  ​
 +  Returns current open/close state of all sides in an array, indexed by direction.
 +- `setSides(settings:​ table):​table`  ​
 +  set open state (true/​false) of all sides in an array; index by direction. Returns previous states.
 +
 +----
 +
 +{{page>​component:​contents&​noheader&​noeditbutton&​nouser&​nofooter}}