Module oc_wasm_safe::computer
source · Expand description
Miscellaneous APIs related to the computer itself.
Functions§
- Returns the Minecraft username of the next allowed user in the ACL.
- Returns the length, in bytes, of the Minecraft username of the next allowed user in the ACL.
- Begins iteration over the computer’s access control list.
- Grants access to the computer to a user.
- Returns the computer’s own UUID address.
- Plays a beep.
- Plays a series of beeps.
- Returns the width of a Unicode character, in terminal columns.
- Returns the amount of CPU time that the computer has consumed, in seconds.
- Sends a message to the debug log, if enabled.
- Returns the amount of energy stored in the computer and its network.
- Halts the computer with an error.
- Returns the amount, in bytes, of free RAM in the computer.
- Returns the amount, in bytes, of RAM installed in the computer.
- Returns the maximum amount of energy that can be stored in the computer and its network.
- Pops a signal from the signal queue.
- Returns the length, in bytes, of the next signal in the signal queue.
- Pushes a signal to the signal queue.
- Reboots the computer.
- Revokes access to the computer from a user.
- Shuts down the computer.
- Returns the UUID address of a filesystem that lives until the computer shuts down and can beused to hold temporarily files.
- Returns the amount of world time the computer has been running, in seconds.
- Returns the current in-game time and date, in game ticks.