public interface Server extends EnvironmentHost, MachineHost, Tiered
if (node.host() instanceof Server) {
You can get a reference to a server either via the above cast, or via a
ServerRack.
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.| Modifier and Type | Method and Description |
|---|---|
ServerRack |
rack()
The server rack this server is in.
|
int |
slot()
The slot of the server rack this server is in.
|
componentSlot, internalComponents, machine, onMachineConnect, onMachineDisconnectmarkChanged, world, xPosition, yPosition, zPositionServerRack rack()
int slot()