MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / disconnectFromWorld

Method disconnectFromWorld

Minecraft-Utils/1.13/src/Variables.java:495–511  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

493 }
494
495 @Override
496 public void disconnectFromWorld() {
497 boolean isOnIntegratedServer = getMinecraft().w();
498 boolean isConnectedToRealms = getMinecraft().Z();
499 if (getWorld() != null) {
500 getWorld().S();
501 }
502 getMinecraft().a((cqv) null);
503 if (isOnIntegratedServer) {
504 displayScreen(new cjx());
505 } else if (isConnectedToRealms) {
506 RealmsBridge realmsBridge = new RealmsBridge();
507 realmsBridge.switchToRealms(new cjx());
508 } else {
509 displayScreen(new clm(new cjx()));
510 }
511 }
512
513 @Override
514 public IServerPinger getServerPinger() {

Callers

nothing calls this directly

Calls 4

getMinecraftMethod · 0.95
getWorldMethod · 0.95
displayScreenMethod · 0.95
aMethod · 0.45

Tested by

no test coverage detected