Java Code Examples for net.minecraft.entity.player.EntityPlayer#getPositionVector()

The following examples show how to use net.minecraft.entity.player.EntityPlayer#getPositionVector() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may want to check out the right sidebar which shows the related API usage.
Example 1
public void onPlayerLeave(EventPlayerLeave event) {
    final Minecraft mc = Minecraft.getMinecraft();

    for (String uuid : this.playerCache.keySet()) {
        if (!uuid.equals(event.getUuid())) // not matching uuid

        final EntityPlayer player = this.playerCache.get(uuid);

        //final Vec3d interp = MathUtil.interpolateEntity(player, mc.getRenderPartialTicks());
        final PlayerData data = new PlayerData(player.getPositionVector(), player.getGameProfile(), player);

        if (!this.hasPlayerLogged(uuid)) {
            this.logoutCache.put(uuid, data);