public float getHeadPartYOffset(int p_184667_1_, double[] p_184667_2_, double[] p_184667_3_) { IPhase iphase = this.phaseManager.getCurrentPhase(); PhaseList <? extends IPhase > phaselist = iphase.getPhaseList(); double d0; if (phaselist != PhaseList.LANDING && phaselist != PhaseList.TAKEOFF) { if (iphase.getIsStationary()) { d0 = (double)p_184667_1_; } else if (p_184667_1_ == 6) { d0 = 0.0D; } else { d0 = p_184667_3_[1] - p_184667_2_[1]; } } else { BlockPos blockpos = this.world.getTopSolidOrLiquidBlock(WorldGenEndPodium.END_PODIUM_LOCATION); float f = Math.max(MathHelper.sqrt(this.getDistanceSqToCenter(blockpos)) / 4.0F, 1.0F); d0 = (double)((float)p_184667_1_ / f); } return (float)d0; }
public Vec3d getHeadLookVec(float p_184665_1_) { IPhase iphase = this.phaseManager.getCurrentPhase(); PhaseList <? extends IPhase > phaselist = iphase.getPhaseList(); Vec3d vec3d; if (phaselist != PhaseList.LANDING && phaselist != PhaseList.TAKEOFF) { if (iphase.getIsStationary()) { float f4 = this.rotationPitch; float f5 = 1.5F; this.rotationPitch = -45.0F; vec3d = this.getLook(p_184665_1_); this.rotationPitch = f4; } else { vec3d = this.getLook(p_184665_1_); } } else { BlockPos blockpos = this.world.getTopSolidOrLiquidBlock(WorldGenEndPodium.END_PODIUM_LOCATION); float f = Math.max(MathHelper.sqrt(this.getDistanceSqToCenter(blockpos)) / 4.0F, 1.0F); float f1 = 6.0F / f; float f2 = this.rotationPitch; float f3 = 1.5F; this.rotationPitch = -f1 * 1.5F * 5.0F; vec3d = this.getLook(p_184665_1_); this.rotationPitch = f2; } return vec3d; }
@SideOnly(Side.CLIENT) public float getHeadPartYOffset(int p_184667_1_, double[] p_184667_2_, double[] p_184667_3_) { IPhase iphase = this.phaseManager.getCurrentPhase(); PhaseList <? extends IPhase > phaselist = iphase.getPhaseList(); double d0; if (phaselist != PhaseList.LANDING && phaselist != PhaseList.TAKEOFF) { if (iphase.getIsStationary()) { d0 = (double)p_184667_1_; } else if (p_184667_1_ == 6) { d0 = 0.0D; } else { d0 = p_184667_3_[1] - p_184667_2_[1]; } } else { BlockPos blockpos = this.worldObj.getTopSolidOrLiquidBlock(WorldGenEndPodium.END_PODIUM_LOCATION); float f = Math.max(MathHelper.sqrt_double(this.getDistanceSqToCenter(blockpos)) / 4.0F, 1.0F); d0 = (double)((float)p_184667_1_ / f); } return (float)d0; }
public Vec3d getHeadLookVec(float p_184665_1_) { IPhase iphase = this.phaseManager.getCurrentPhase(); PhaseList <? extends IPhase > phaselist = iphase.getPhaseList(); Vec3d vec3d; if (phaselist != PhaseList.LANDING && phaselist != PhaseList.TAKEOFF) { if (iphase.getIsStationary()) { float f4 = this.rotationPitch; float f5 = 1.5F; this.rotationPitch = -45.0F; vec3d = this.getLook(p_184665_1_); this.rotationPitch = f4; } else { vec3d = this.getLook(p_184665_1_); } } else { BlockPos blockpos = this.worldObj.getTopSolidOrLiquidBlock(WorldGenEndPodium.END_PODIUM_LOCATION); float f = Math.max(MathHelper.sqrt_double(this.getDistanceSqToCenter(blockpos)) / 4.0F, 1.0F); float f1 = 6.0F / f; float f2 = this.rotationPitch; float f3 = 1.5F; this.rotationPitch = -f1 * 1.5F * 5.0F; vec3d = this.getLook(p_184665_1_); this.rotationPitch = f2; } return vec3d; }