li.cil.oc.api.network
public interface Context
Callbacks, i.e. the
computer from which the callback was called.| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
address()
Deprecated.
Use node().address() instead.
|
boolean |
canInteract(java.lang.String player)
Tests whether a player is allowed to use the computer.
|
boolean |
isPaused()
Whether the computer is currently in a paused state.
|
boolean |
isRunning()
Whether the computer is currently in a running state, i.e.
|
Node |
node()
The node through which the computer is attached to the component network.
|
boolean |
pause(double seconds)
Pauses the computer for the specified duration.
|
boolean |
signal(java.lang.String name,
java.lang.Object... args)
Push a signal into the computer.
|
boolean |
start()
Starts the computer.
|
boolean |
stop()
Stops the computer.
|
@Deprecated java.lang.String address()
Node node()
boolean canInteract(java.lang.String player)
player - the name of the player to check for.boolean isRunning()
boolean isPaused()
boolean start()
boolean pause(double seconds)
seconds - the number of seconds to pause the computer for.boolean stop()
boolean signal(java.lang.String name,
java.lang.Object... args)
name - the name of the signal to push.args - additional arguments to pass along with the signal.