BuilderSyntax<MultiplayerOptions>
, ClientPortsSyntax
, MultiplayerOptionsSyntax
, ServerPortSyntax
public static final class MultiplayerOptions.Builder extends java.lang.Object implements MultiplayerOptionsSyntax, ServerPortSyntax, ClientPortsSyntax, BuilderSyntax<MultiplayerOptions>
Constructor | Description |
---|---|
Builder() |
Modifier and Type | Method | Description |
---|---|---|
MultiplayerOptions |
build() |
|
BuilderSyntax<MultiplayerOptions> |
clientPorts(PortSet... clientPorts) |
|
BuilderSyntax<MultiplayerOptions> |
clientPorts(java.util.Collection<PortSet> clientPorts) |
|
ClientPortsSyntax |
serverPort(PortSet serverPort) |
|
ServerPortSyntax |
sharedPort(int sharedPort) |
public ServerPortSyntax sharedPort(int sharedPort)
sharedPort
in interface MultiplayerOptionsSyntax
public ClientPortsSyntax serverPort(PortSet serverPort)
serverPort
in interface ServerPortSyntax
public BuilderSyntax<MultiplayerOptions> clientPorts(PortSet... clientPorts)
clientPorts
in interface ClientPortsSyntax
public BuilderSyntax<MultiplayerOptions> clientPorts(java.util.Collection<PortSet> clientPorts)
clientPorts
in interface ClientPortsSyntax
public MultiplayerOptions build()
build
in interface BuilderSyntax<MultiplayerOptions>
Copyright © 2017–2018 Ocraft Project. All rights reserved.