/**
     * Handles updating while being ridden by an entity
     */
    public void updateRidden() {
        if (!this.worldObj.isRemote && this.isSneaking()) {
            this.mountEntity((Entity) null);
            this.setSneaking(false);
        } else {
            double d0 = this.posX;
            double d1 = this.posY;
            double d2 = this.posZ;
            float yaw = this.rotationYaw;
            float pitch = this.rotationPitch;
            if(this == Minecraft.getMinecraft().thePlayer) {
                yaw = PlayerHandler.yaw;
                pitch = PlayerHandler.pitch;
            }
            float f = yaw;
            float f1 = pitch;
            super.updateRidden();
            this.prevCameraYaw = this.cameraYaw;
            this.cameraYaw = 0.0F;
            this.addMountedMovementStat(this.posX - d0, this.posY - d1, this.posZ - d2);

            if (this.ridingEntity instanceof EntityPig) {
                this.rotationPitch = f1;
                this.rotationYaw = f;
                if(this == Minecraft.getMinecraft().thePlayer) {
                    PlayerHandler.yaw = f;
                    PlayerHandler.pitch = f1;
                }
                this.renderYawOffset = ((EntityPig) this.ridingEntity).renderYawOffset;
            }
        }
    }