Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.06 KB | None | 0 0
  1.   public static void func_147046_a(int p_147046_0_, int p_147046_1_, int p_147046_2_, float p_147046_3_, float p_147046_4_, EntityLivingBase p_147046_5_)
  2.     {
  3.         GL11.glEnable(GL11.GL_COLOR_MATERIAL);
  4.         GL11.glPushMatrix();
  5.         GL11.glTranslatef((float)p_147046_0_, (float)p_147046_1_, 50.0F);
  6.         GL11.glScalef((float)(-p_147046_2_), (float)p_147046_2_, (float)p_147046_2_);
  7.         GL11.glRotatef(180.0F, 0.0F, 0.0F, 1.0F);
  8.         float f2 = p_147046_5_.renderYawOffset;
  9.         float f3 = p_147046_5_.rotationYaw;
  10.         float f4 = p_147046_5_.rotationPitch;
  11.         float f5 = p_147046_5_.prevRotationYawHead;
  12.         float f6 = p_147046_5_.rotationYawHead;
  13.         GL11.glRotatef(135.0F, 0.0F, 1.0F, 0.0F);
  14.         RenderHelper.enableStandardItemLighting();
  15.         GL11.glRotatef(-135.0F, 0.0F, 1.0F, 0.0F);
  16.         GL11.glRotatef(-((float)Math.atan((double)(p_147046_4_ / 40.0F))) * 20.0F, 1.0F, 0.0F, 0.0F);
  17.         p_147046_5_.renderYawOffset = (float)Math.atan((double)(p_147046_3_ / 40.0F)) * 20.0F;
  18.         p_147046_5_.rotationYaw = (float)Math.atan((double)(p_147046_3_ / 40.0F)) * 40.0F;
  19.         p_147046_5_.rotationPitch = -((float)Math.atan((double)(p_147046_4_ / 40.0F))) * 20.0F;
  20.         p_147046_5_.rotationYawHead = p_147046_5_.rotationYaw;
  21.         p_147046_5_.prevRotationYawHead = p_147046_5_.rotationYaw;
  22.         GL11.glTranslatef(0.0F, p_147046_5_.yOffset, 0.0F);
  23.         RenderManager.instance.playerViewY = 180.0F;
  24.         RenderManager.instance.renderEntityWithPosYaw(p_147046_5_, 0.0D, 0.0D, 0.0D, 0.0F, 1.0F);
  25.         p_147046_5_.renderYawOffset = f2;
  26.         p_147046_5_.rotationYaw = f3;
  27.         p_147046_5_.rotationPitch = f4;
  28.         p_147046_5_.prevRotationYawHead = f5;
  29.         p_147046_5_.rotationYawHead = f6;
  30.         GL11.glPopMatrix();
  31.         RenderHelper.disableStandardItemLighting();
  32.         GL11.glDisable(GL12.GL_RESCALE_NORMAL);
  33.         OpenGlHelper.setActiveTexture(OpenGlHelper.lightmapTexUnit);
  34.         GL11.glDisable(GL11.GL_TEXTURE_2D);
  35.         OpenGlHelper.setActiveTexture(OpenGlHelper.defaultTexUnit);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement