MCPcopy Create free account
hub / github.com/GregTech6/gregtech6 / onLoginEvent

Method onLoginEvent

src/main/java/gregapi/GT_API_Proxy.java:1416–1426  ·  view source on GitHub ↗
(cpw.mods.fml.common.gameevent.PlayerEvent.PlayerLoggedInEvent aEvent)

Source from the content-addressed store, hash-verified

1414 }
1415
1416 @SubscribeEvent(priority = EventPriority.LOWEST)
1417 public void onLoginEvent(cpw.mods.fml.common.gameevent.PlayerEvent.PlayerLoggedInEvent aEvent) {
1418 if (DISABLE_ALL_IC2_COMPRESSOR_RECIPES) ic2.api.recipe.Recipes.compressor.getRecipes().clear();
1419 if (DISABLE_ALL_IC2_EXTRACTOR_RECIPES ) ic2.api.recipe.Recipes.extractor .getRecipes().clear();
1420 if (DISABLE_ALL_IC2_MACERATOR_RECIPES ) ic2.api.recipe.Recipes.macerator .getRecipes().clear();
1421 if (DISABLE_ALL_IC2_OREWASHER_RECIPES ) ic2.api.recipe.Recipes.oreWashing.getRecipes().clear();
1422 if (DISABLE_ALL_IC2_CENTRIFUGE_RECIPES) ic2.api.recipe.Recipes.centrifuge.getRecipes().clear();
1423
1424 if (aEvent.player.worldObj.isRemote) return;
1425 if (aEvent.player instanceof EntityPlayerMP) mNewPlayers.add((EntityPlayerMP)aEvent.player);
1426 }
1427
1428 @Override
1429 public void generate(Random aRandom, int aChunkX, int aChunkZ, World aWorld, IChunkProvider aChunkGenerator, IChunkProvider aChunkProvider) {

Callers

nothing calls this directly

Calls 2

addMethod · 0.65
clearMethod · 0.45

Tested by

no test coverage detected