public interface Server extends EnvironmentHost, MachineHost, Tiered, RackMountable
if (node.host() instanceof Server) {You can get a reference to a server either via the above cast, or via a
Rack.getMountable(int)
.
The only purpose is to allow identifying node environments as servers
via the API, i.e. without having to link against internal classes. This
also means that you should not implement this.StateAware.State
Modifier and Type | Method and Description |
---|---|
Rack |
rack()
The server rack this server is in.
|
int |
slot()
The slot of the server rack this server is in.
|
componentSlot, internalComponents, machine, onMachineConnect, onMachineDisconnect
markChanged, world, xPosition, yPosition, zPosition
getConnectableAt, getConnectableCount, getData, onActivate
canUpdate, update
node, onConnect, onDisconnect, onMessage
load, save
getCurrentState
Rack rack()
int slot()