(Object lastScreen)
| 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() { |
nothing calls this directly
no test coverage detected