Computer (Peripheral) Documentation
Introduction
Computers are not only able to receive peripherals, but are also peripherals themselves. This allows computers to control each other and even perform basic communication.
Note: state changing commands might not be applied instantly, and programs should check before making assumptions about the state of a computer being controlled
Note: the UUID of the peripheral is the exact same as the UUID for the computer.
All Computers are categorized as "neetcomputers:computer" in the IO APILookup table
| shutdown() | Instructs the computer to shut down at its nearest convenience |
| startup() | Instructs the computer to startup at its nearest convenience |
| getId() | Gets the UUID of the computer |
| getMachine() | Gets a string definition of the type of the computer |
| isOn() | Checks if the computer is on |
Functions in detail
shutdown()
Tells the targeted computer to shut down, not instant.
Parameters: None Returns: Nonestartup()
Tells the targeted computer to power up, is instant but the computer won't be ready to run code instantly.
Parameters: None Returns: NonegetId()
Gets the UUID of the computer.
Parameters: None Returns: StringgetMachine()
Gets a string definition of the type of the computer.
Parameters: None Returns: StringisOn()
Checks if the computer is on.
Parameters: None Returns: Boolean