RedstonePortSide

Input readings and waits relative to the port's front, independently of the computer's facing.

Functions

Link copied to clipboard
fun await(): Int

Wait for a newly sampled change; zero is a valid result.

fun await(level: Int): Int

Completes immediately if the current sample equals level.

Link copied to clipboard
fun awaitAtLeast(level: Int): Int
Link copied to clipboard
fun get(): Int

Asynchronous host I/O returning the latest server-tick input sample.