public interface Server extends EnvironmentHost
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 |
|---|---|
Machine |
machine()
The machine currently hosted by this server.
|
ServerRack |
rack()
The server rack this server is in.
|
int |
slot()
The slot of the server rack this server is in.
|
int |
tier()
The tier of the server.
|
markChanged, world, xPosition, yPosition, zPositionMachine machine()
ServerRack rack()
int slot()
int tier()