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

Method onGuiGameOverInit

The 5zig Mod/src/BytecodeHook.java:434–447  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

432 }
433
434 @BytecodeAccess
435 public static void onGuiGameOverInit() {
436 if (The5zigMod.getVars().isPlayerNull()) {
437 return;
438 }
439 Vector3f coordinates = new Vector3f((float) The5zigMod.getVars().getPlayerPosX(), (float) The5zigMod.getVars().getPlayerPosY(),
440 (float) The5zigMod.getVars().getPlayerPosZ());
441 WorldType worldType = WorldType.OVERWORLD;
442 String biome = The5zigMod.getVars().getBiome();
443 if (biome != null) {
444 worldType = WorldType.byName(biome);
445 }
446 The5zigMod.getDataManager().setDeathLocation(new DeathLocation(coordinates, worldType));
447 }
448
449 @BytecodeAccess
450 public static int getChatAlphaMultiplicator() {

Callers

nothing calls this directly

Calls 9

getVarsMethod · 0.95
byNameMethod · 0.95
getDataManagerMethod · 0.95
setDeathLocationMethod · 0.80
isPlayerNullMethod · 0.65
getPlayerPosXMethod · 0.65
getPlayerPosYMethod · 0.65
getPlayerPosZMethod · 0.65
getBiomeMethod · 0.65

Tested by

no test coverage detected