diff options
| author | bculkin2442 <bjculkin@mix.wvu.edu> | 2018-05-24 16:03:42 -0400 |
|---|---|---|
| committer | bculkin2442 <bjculkin@mix.wvu.edu> | 2018-05-24 16:03:42 -0400 |
| commit | 9a4d1e95ea7784f0f98ea2913701a3a3c28aefaa (patch) | |
| tree | b4307f58fe2197d2215707bb3f44cf8952229c6d /src/main/java/darkknight/jewelrycraft/model/ModelBracelet.java | |
| parent | 4f7ad220df0438b6f3382110577b53f29da46453 (diff) | |
Formatting pass
Diffstat (limited to 'src/main/java/darkknight/jewelrycraft/model/ModelBracelet.java')
| -rwxr-xr-x | src/main/java/darkknight/jewelrycraft/model/ModelBracelet.java | 67 |
1 files changed, 44 insertions, 23 deletions
diff --git a/src/main/java/darkknight/jewelrycraft/model/ModelBracelet.java b/src/main/java/darkknight/jewelrycraft/model/ModelBracelet.java index 08a092a..f63e4bf 100755 --- a/src/main/java/darkknight/jewelrycraft/model/ModelBracelet.java +++ b/src/main/java/darkknight/jewelrycraft/model/ModelBracelet.java @@ -33,7 +33,8 @@ public class ModelBracelet extends ModelBase { this.gem4 = new ModelRenderer(this, 0, 0); this.gem4.setRotationPoint(-3.0F, 12.8F, -3.5F); this.gem4.addBox(0.0F, 0.0F, 0.0F, 1, 1, 1, 0.0F); - this.setRotateAngle(gem4, 0.0F, 0.008901179185171082F, 0.0F); + this.setRotateAngle(gem4, 0.0F, 0.008901179185171082F, + 0.0F); this.gem3 = new ModelRenderer(this, 0, 0); this.gem3.setRotationPoint(-4.8F, 12.2F, -3.5F); this.gem3.addBox(0.0F, 0.0F, 0.0F, 1, 1, 1, 0.0F); @@ -78,7 +79,8 @@ public class ModelBracelet extends ModelBase { int red = (ingotColor >> 16) & 0xff; int green = (ingotColor >> 8) & 0xff; int blue = ingotColor & 0xff; - GL11.glColor3f((float) red / 255, (float) green / 255, + GL11.glColor3f((float) red / 255, + (float) green / 255, (float) blue / 255); this.metal1.render(f5); this.metal2.render(f5); @@ -90,19 +92,22 @@ public class ModelBracelet extends ModelBase { int red = gemColor >> 16 & 0xff; int green = gemColor >> 8 & 0xff; int blue = gemColor & 0xff; - GL11.glColor3f((float) red / 255, (float) green / 255, + GL11.glColor3f((float) red / 255, + (float) green / 255, (float) blue / 255); GL11.glEnable(GL11.GL_BLEND); GL11.glBlendFunc(GL11.GL_SRC_COLOR, GL11.GL_ONE_MINUS_DST_COLOR); GL11.glPushMatrix(); - GL11.glTranslatef(this.gem4.offsetX, this.gem4.offsetY, + GL11.glTranslatef(this.gem4.offsetX, + this.gem4.offsetY, this.gem4.offsetZ); GL11.glTranslatef(this.gem4.rotationPointX * f5, this.gem4.rotationPointY * f5, this.gem4.rotationPointZ * f5); GL11.glScaled(0.5D, 0.5D, 0.5D); - GL11.glTranslatef(-this.gem4.offsetX, -this.gem4.offsetY, + GL11.glTranslatef(-this.gem4.offsetX, + -this.gem4.offsetY, -this.gem4.offsetZ); GL11.glTranslatef(-this.gem4.rotationPointX * f5, -this.gem4.rotationPointY * f5, @@ -110,13 +115,15 @@ public class ModelBracelet extends ModelBase { this.gem4.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); - GL11.glTranslatef(this.gem3.offsetX, this.gem3.offsetY, + GL11.glTranslatef(this.gem3.offsetX, + this.gem3.offsetY, this.gem3.offsetZ); GL11.glTranslatef(this.gem3.rotationPointX * f5, this.gem3.rotationPointY * f5, this.gem3.rotationPointZ * f5); GL11.glScaled(0.5D, 0.5D, 0.5D); - GL11.glTranslatef(-this.gem3.offsetX, -this.gem3.offsetY, + GL11.glTranslatef(-this.gem3.offsetX, + -this.gem3.offsetY, -this.gem3.offsetZ); GL11.glTranslatef(-this.gem3.rotationPointX * f5, -this.gem3.rotationPointY * f5, @@ -124,13 +131,15 @@ public class ModelBracelet extends ModelBase { this.gem3.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); - GL11.glTranslatef(this.gem2.offsetX, this.gem2.offsetY, + GL11.glTranslatef(this.gem2.offsetX, + this.gem2.offsetY, this.gem2.offsetZ); GL11.glTranslatef(this.gem2.rotationPointX * f5, this.gem2.rotationPointY * f5, this.gem2.rotationPointZ * f5); GL11.glScaled(0.5D, 0.5D, 0.5D); - GL11.glTranslatef(-this.gem2.offsetX, -this.gem2.offsetY, + GL11.glTranslatef(-this.gem2.offsetX, + -this.gem2.offsetY, -this.gem2.offsetZ); GL11.glTranslatef(-this.gem2.rotationPointX * f5, -this.gem2.rotationPointY * f5, @@ -138,13 +147,15 @@ public class ModelBracelet extends ModelBase { this.gem2.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); - GL11.glTranslatef(this.gem1.offsetX, this.gem1.offsetY, + GL11.glTranslatef(this.gem1.offsetX, + this.gem1.offsetY, this.gem1.offsetZ); GL11.glTranslatef(this.gem1.rotationPointX * f5, this.gem1.rotationPointY * f5, this.gem1.rotationPointZ * f5); GL11.glScaled(0.5D, 0.5D, 0.5D); - GL11.glTranslatef(-this.gem1.offsetX, -this.gem1.offsetY, + GL11.glTranslatef(-this.gem1.offsetX, + -this.gem1.offsetY, -this.gem1.offsetZ); GL11.glTranslatef(-this.gem1.rotationPointX * f5, -this.gem1.rotationPointY * f5, @@ -152,13 +163,15 @@ public class ModelBracelet extends ModelBase { this.gem1.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); - GL11.glTranslatef(this.gem6.offsetX, this.gem6.offsetY, + GL11.glTranslatef(this.gem6.offsetX, + this.gem6.offsetY, this.gem6.offsetZ); GL11.glTranslatef(this.gem6.rotationPointX * f5, this.gem6.rotationPointY * f5, this.gem6.rotationPointZ * f5); GL11.glScaled(0.5D, 0.5D, 0.5D); - GL11.glTranslatef(-this.gem6.offsetX, -this.gem6.offsetY, + GL11.glTranslatef(-this.gem6.offsetX, + -this.gem6.offsetY, -this.gem6.offsetZ); GL11.glTranslatef(-this.gem6.rotationPointX * f5, -this.gem6.rotationPointY * f5, @@ -166,13 +179,15 @@ public class ModelBracelet extends ModelBase { this.gem6.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); - GL11.glTranslatef(this.gem7.offsetX, this.gem7.offsetY, + GL11.glTranslatef(this.gem7.offsetX, + this.gem7.offsetY, this.gem7.offsetZ); GL11.glTranslatef(this.gem7.rotationPointX * f5, this.gem7.rotationPointY * f5, this.gem7.rotationPointZ * f5); GL11.glScaled(0.5D, 0.5D, 0.5D); - GL11.glTranslatef(-this.gem7.offsetX, -this.gem7.offsetY, + GL11.glTranslatef(-this.gem7.offsetX, + -this.gem7.offsetY, -this.gem7.offsetZ); GL11.glTranslatef(-this.gem7.rotationPointX * f5, -this.gem7.rotationPointY * f5, @@ -180,13 +195,15 @@ public class ModelBracelet extends ModelBase { this.gem7.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); - GL11.glTranslatef(this.gem8.offsetX, this.gem8.offsetY, + GL11.glTranslatef(this.gem8.offsetX, + this.gem8.offsetY, this.gem8.offsetZ); GL11.glTranslatef(this.gem8.rotationPointX * f5, this.gem8.rotationPointY * f5, this.gem8.rotationPointZ * f5); GL11.glScaled(0.5D, 0.5D, 0.5D); - GL11.glTranslatef(-this.gem8.offsetX, -this.gem8.offsetY, + GL11.glTranslatef(-this.gem8.offsetX, + -this.gem8.offsetY, -this.gem8.offsetZ); GL11.glTranslatef(-this.gem8.rotationPointX * f5, -this.gem8.rotationPointY * f5, @@ -194,13 +211,15 @@ public class ModelBracelet extends ModelBase { this.gem8.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); - GL11.glTranslatef(this.gem5.offsetX, this.gem5.offsetY, + GL11.glTranslatef(this.gem5.offsetX, + this.gem5.offsetY, this.gem5.offsetZ); GL11.glTranslatef(this.gem5.rotationPointX * f5, this.gem5.rotationPointY * f5, this.gem5.rotationPointZ * f5); GL11.glScaled(0.5D, 0.5D, 0.5D); - GL11.glTranslatef(-this.gem5.offsetX, -this.gem5.offsetY, + GL11.glTranslatef(-this.gem5.offsetX, + -this.gem5.offsetY, -this.gem5.offsetZ); GL11.glTranslatef(-this.gem5.rotationPointX * f5, -this.gem5.rotationPointY * f5, @@ -208,13 +227,15 @@ public class ModelBracelet extends ModelBase { this.gem5.render(f5); GL11.glPopMatrix(); GL11.glPushMatrix(); - GL11.glTranslatef(this.gem9.offsetX, this.gem9.offsetY, + GL11.glTranslatef(this.gem9.offsetX, + this.gem9.offsetY, this.gem9.offsetZ); GL11.glTranslatef(this.gem9.rotationPointX * f5, this.gem9.rotationPointY * f5, this.gem9.rotationPointZ * f5); GL11.glScaled(0.5D, 0.5D, 0.5D); - GL11.glTranslatef(-this.gem9.offsetX, -this.gem9.offsetY, + GL11.glTranslatef(-this.gem9.offsetX, + -this.gem9.offsetY, -this.gem9.offsetZ); GL11.glTranslatef(-this.gem9.rotationPointX * f5, -this.gem9.rotationPointY * f5, @@ -227,8 +248,8 @@ public class ModelBracelet extends ModelBase { } /** - * This is a helper function from Tabula to set the rotation of model - * parts + * This is a helper function from Tabula to set the rotation of + * model parts */ public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) { |
