package openonyx.render.group_i; import net.minecraft.client.renderer.WorldRenderer; import net.minecraft.util.Vec3; final class ChinaHatRendererPart2 { private final float h; private final float l; private final float I; private final float d; private final float i; private final double f; private final double H; private final double e; private void L(WorldRenderer worldRenderer, float f, float g, float h, int i) { float k; float j = (k = g + this.h) * this.d - hx * this.l; g = k * this.l + hx * this.d; ChinaHatRenderer.L(worldRenderer, this.e + fx * this.i - g * this.I, this.f + j, this.H + fx * this.I + g * this.i, ix); } private ChinaHatRendererPart2(HatPose hatPose, Vec3 vec3) { this.e = hatPose.pivot().xCoord - vec3.xCoord; this.f = hatPose.pivot().yCoord - vec3.yCoord; this.H = hatPose.pivot().zCoord - vec3.zCoord; this.h = hatPose.lift(); float fx = (float)Math.toRadians(hatPose.pitch()); float g = (float)Math.toRadians(hatPose.yaw()); this.d = (float)Math.cos(fx); this.l = (float)Math.sin(fx); this.i = (float)Math.cos(g); this.I = (float)Math.sin(g); } }