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

Method isConfirmDisconnect

The 5zig Mod/src/BytecodeHook.java:454–474  ·  view source on GitHub ↗
(Object lastScreen)

Source from the content-addressed store, hash-verified

452 }
453
454 @BytecodeAccess
455 public static boolean isConfirmDisconnect(Object lastScreen) {
456 if (The5zigMod.getConfig().getBool("confirmDisconnect")) {
457 The5zigMod.getVars().displayScreen(new GuiYesNo(The5zigMod.getVars().createWrappedGui(lastScreen), new YesNoCallback() {
458 @Override
459 public void onDone(boolean yes) {
460 if (yes) {
461 The5zigMod.getVars().disconnectFromWorld();
462 }
463 }
464
465 @Override
466 public String title() {
467 return I18n.translate("confirm_disconnect.title");
468 }
469 }));
470 return true;
471 } else {
472 return false;
473 }
474 }
475
476 @BytecodeAccess
477 public static boolean shouldRenderOwnName() {

Callers

nothing calls this directly

Calls 5

getConfigMethod · 0.95
getVarsMethod · 0.95
getBoolMethod · 0.80
displayScreenMethod · 0.65
createWrappedGuiMethod · 0.65

Tested by

no test coverage detected