Class Server
java.lang.Object
net.minestom.server.network.socket.Server
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getPort()
void
init
(SocketAddress address) boolean
isOpen()
@NotNull PacketParser
<ClientPacket> void
start()
void
stop()
-
Constructor Details
-
Server
-
Server
public Server()
-
-
Method Details
-
init
- Throws:
IOException
-
start
@Internal public void start() -
isOpen
public boolean isOpen() -
stop
public void stop() -
packetParser
-
socketAddress
-
getAddress
-
getPort
public int getPort()
-