/** * adds a lightning bolt to the list of lightning bolts in this world. */ public boolean addWeatherEffect(Entity entityIn) { if (super.addWeatherEffect(entityIn)) { this.mcServer.getPlayerList().sendToAllNearExcept((EntityPlayer)null, entityIn.posX, entityIn.posY, entityIn.posZ, 512.0D, this.provider.getDimensionType().getId(), new SPacketSpawnGlobalEntity(entityIn)); return true; } else { return false; } }
/** * adds a lightning bolt to the list of lightning bolts in this world. */ public boolean addWeatherEffect(Entity entityIn) { if (super.addWeatherEffect(entityIn)) { this.mcServer.getPlayerList().sendToAllNearExcept((EntityPlayer)null, entityIn.posX, entityIn.posY, entityIn.posZ, 512.0D, this.provider.getDimension(), new SPacketSpawnGlobalEntity(entityIn)); return true; } else { return false; } }
/** * Handles globally visible entities. Used in vanilla for lightning bolts */ void handleSpawnGlobalEntity(SPacketSpawnGlobalEntity packetIn);