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

Method onLivingDeath

src/main/java/gregapi/GT_API_Proxy.java:1411–1414  ·  view source on GitHub ↗
(LivingDeathEvent aEvent)

Source from the content-addressed store, hash-verified

1409 public static List<EntityPlayerMP> mNewPlayers = new ArrayListNoNulls<>();
1410
1411 @SubscribeEvent(priority = EventPriority.LOWEST)
1412 public void onLivingDeath(LivingDeathEvent aEvent) {
1413 if (aEvent.entityLiving instanceof EntityPlayerMP) NW_API.sendToPlayer(new PacketDeathPoint(UT.Code.roundDown(aEvent.entityLiving.posX), UT.Code.roundDown(aEvent.entityLiving.posY), UT.Code.roundDown(aEvent.entityLiving.posZ)), (EntityPlayerMP)aEvent.entityLiving);
1414 }
1415
1416 @SubscribeEvent(priority = EventPriority.LOWEST)
1417 public void onLoginEvent(cpw.mods.fml.common.gameevent.PlayerEvent.PlayerLoggedInEvent aEvent) {

Callers

nothing calls this directly

Calls 2

roundDownMethod · 0.80
sendToPlayerMethod · 0.65

Tested by

no test coverage detected