use of net.minecraft.client.server.IntegratedServer in project SpongeCommon by SpongePowered.
the class MinecraftMixin_API method server.
@Override
public Optional<LocalServer> server() {
final MinecraftBridge minecraftBridge = (MinecraftBridge) (this);
final IntegratedServer integratedServer = minecraftBridge.bridge$getTemporaryIntegratedServer();
if (integratedServer != null) {
return (Optional<LocalServer>) (Object) Optional.ofNullable(integratedServer);
}
return (Optional<LocalServer>) (Object) Optional.ofNullable(this.shadow$getSingleplayerServer());
}
Aggregations