public interface ResourcePackServer
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ResourcePackServer.Builder
A builder for
ResourcePackServer instances |
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.net.InetSocketAddress |
address()
Gets the server's bound
address. |
static @NotNull ResourcePackServer.Builder |
builder()
Deprecated.
Use
server() instead |
@NotNull com.sun.net.httpserver.HttpServer |
httpServer()
Deprecated.
Should not be exposed by this interface
|
static @NotNull ResourcePackServer.Builder |
server()
Creates a new builder instance for
ResourcePackServer. |
void |
start()
Starts the internal
HttpServer, it is started in a new
background thread, so this operation is not blocking |
void |
stop(int delay)
Stops the internal
HttpServer |
@NotNull static @NotNull ResourcePackServer.Builder server()
ResourcePackServer.@Deprecated @ApiStatus.ScheduledForRemoval(inVersion="2.0.0") @Contract(value="-> new") @NotNull static @NotNull ResourcePackServer.Builder builder()
server() insteadResourcePackServer.@Deprecated @ApiStatus.ScheduledForRemoval(inVersion="2.0.0") @NotNull @NotNull com.sun.net.httpserver.HttpServer httpServer()
HttpServer instance.HttpServer instance@NotNull @NotNull java.net.InetSocketAddress address()
address.addressvoid start()
HttpServer, it is started in a new
background thread, so this operation is not blockingvoid stop(int delay)
HttpServerdelay - the maximum time in seconds to wait until requests have finishedHttpServer.stop(int)