General Code Maintenance

-might fix https://github.com/GTNewHorizons/NewHorizons/issues/5048
-optimised imports
-removed some unused null checks
-qualified names, generally made the code more readable

Signed-off-by: bartimaeusnek <[email protected]>
This commit is contained in:
bartimaeusnek committed 2019-10-15 14:32:38 +02:00
1 parent 70064913d8
commit bab9ad582f
246 files changed
+4892 -5114

No files matched your search

@@ -28,91 +28,91 @@ public class ModelArcaneDropper extends ModelBase {
ModelRenderer shape11;
public ModelArcaneDropper() {
textureWidth = 64;
textureHeight = 64;
this.textureWidth = 64;
this.textureHeight = 64;
shape1 = new ModelRenderer(this, 44, 0);
shape1.addBox(0F, 0F, 0F, 2, 14, 8);
shape1.setRotationPoint(-1F, 10F, -4F);
shape1.setTextureSize(64, 64);
shape1.mirror = true;
setRotation(shape1, 0F, 0F, 0F);
shape2 = new ModelRenderer(this, 0, 0);
shape2.addBox(0F, 0F, 0F, 16, 16, 4);
shape2.setRotationPoint(-8F, 8F, 4F);
shape2.setTextureSize(64, 64);
shape2.mirror = true;
setRotation(shape2, 0F, 0F, 0F);
shape3 = new ModelRenderer(this, 0, 20);
shape3.addBox(0F, 0F, 0F, 16, 16, 4);
shape3.setRotationPoint(-8F, 8F, -8F);
shape3.setTextureSize(64, 64);
shape3.mirror = true;
setRotation(shape3, 0F, 0F, 0F);
shape4 = new ModelRenderer(this, 34, 22);
shape4.addBox(0F, 0F, 0F, 7, 2, 8);
shape4.setRotationPoint(1F, 10F, -4F);
shape4.setTextureSize(64, 64);
shape4.mirror = true;
setRotation(shape4, 0F, 0F, 0F);
shape5 = new ModelRenderer(this, 34, 32);
shape5.addBox(0F, 0F, 0F, 7, 4, 8);
shape5.setRotationPoint(1F, 20F, -4F);
shape5.setTextureSize(64, 64);
shape5.mirror = true;
setRotation(shape5, 0F, 0F, 0F);
shape6 = new ModelRenderer(this, 34, 52);
shape6.addBox(0F, 0F, 0F, 7, 4, 8);
shape6.setRotationPoint(-8F, 20F, -4F);
shape6.setTextureSize(64, 64);
shape6.mirror = true;
setRotation(shape6, 0F, 0F, 0F);
shape7 = new ModelRenderer(this, 0, 40);
shape7.addBox(0F, 0F, 0F, 7, 2, 8);
shape7.setRotationPoint(-8F, 10F, -4F);
shape7.setTextureSize(64, 64);
shape7.mirror = true;
setRotation(shape7, 0F, 0F, 0F);
shape8 = new ModelRenderer(this, 21, 50);
shape8.addBox(0F, 0F, 0F, 5, 2, 8);
shape8.setRotationPoint(3F, 8F, -4F);
shape8.setTextureSize(64, 64);
shape8.mirror = true;
setRotation(shape8, 0F, 0F, 0F);
shape9 = new ModelRenderer(this, 0, 50);
shape9.addBox(0F, 0F, 0F, 5, 2, 8);
shape9.setRotationPoint(-8F, 8F, -4F);
shape9.setTextureSize(64, 64);
shape9.mirror = true;
setRotation(shape9, 0F, 0F, 0F);
shape10 = new ModelRenderer(this, 0, 61);
shape10.addBox(0F, 0F, 0F, 6, 2, 1);
shape10.setRotationPoint(-3F, 8F, -4F);
shape10.setTextureSize(64, 64);
shape10.mirror = true;
setRotation(shape10, 0F, 0F, 0F);
shape11 = new ModelRenderer(this, 14, 61);
shape11.addBox(0F, 0F, 0F, 6, 2, 1);
shape11.setRotationPoint(-3F, 8F, 3F);
shape11.setTextureSize(64, 64);
shape11.mirror = true;
setRotation(shape11, 0F, 0F, 0F);
this.shape1 = new ModelRenderer(this, 44, 0);
this.shape1.addBox(0F, 0F, 0F, 2, 14, 8);
this.shape1.setRotationPoint(-1F, 10F, -4F);
this.shape1.setTextureSize(64, 64);
this.shape1.mirror = true;
this.setRotation(this.shape1, 0F, 0F, 0F);
this.shape2 = new ModelRenderer(this, 0, 0);
this.shape2.addBox(0F, 0F, 0F, 16, 16, 4);
this.shape2.setRotationPoint(-8F, 8F, 4F);
this.shape2.setTextureSize(64, 64);
this.shape2.mirror = true;
this.setRotation(this.shape2, 0F, 0F, 0F);
this.shape3 = new ModelRenderer(this, 0, 20);
this.shape3.addBox(0F, 0F, 0F, 16, 16, 4);
this.shape3.setRotationPoint(-8F, 8F, -8F);
this.shape3.setTextureSize(64, 64);
this.shape3.mirror = true;
this.setRotation(this.shape3, 0F, 0F, 0F);
this.shape4 = new ModelRenderer(this, 34, 22);
this.shape4.addBox(0F, 0F, 0F, 7, 2, 8);
this.shape4.setRotationPoint(1F, 10F, -4F);
this.shape4.setTextureSize(64, 64);
this.shape4.mirror = true;
this.setRotation(this.shape4, 0F, 0F, 0F);
this.shape5 = new ModelRenderer(this, 34, 32);
this.shape5.addBox(0F, 0F, 0F, 7, 4, 8);
this.shape5.setRotationPoint(1F, 20F, -4F);
this.shape5.setTextureSize(64, 64);
this.shape5.mirror = true;
this.setRotation(this.shape5, 0F, 0F, 0F);
this.shape6 = new ModelRenderer(this, 34, 52);
this.shape6.addBox(0F, 0F, 0F, 7, 4, 8);
this.shape6.setRotationPoint(-8F, 20F, -4F);
this.shape6.setTextureSize(64, 64);
this.shape6.mirror = true;
this.setRotation(this.shape6, 0F, 0F, 0F);
this.shape7 = new ModelRenderer(this, 0, 40);
this.shape7.addBox(0F, 0F, 0F, 7, 2, 8);
this.shape7.setRotationPoint(-8F, 10F, -4F);
this.shape7.setTextureSize(64, 64);
this.shape7.mirror = true;
this.setRotation(this.shape7, 0F, 0F, 0F);
this.shape8 = new ModelRenderer(this, 21, 50);
this.shape8.addBox(0F, 0F, 0F, 5, 2, 8);
this.shape8.setRotationPoint(3F, 8F, -4F);
this.shape8.setTextureSize(64, 64);
this.shape8.mirror = true;
this.setRotation(this.shape8, 0F, 0F, 0F);
this.shape9 = new ModelRenderer(this, 0, 50);
this.shape9.addBox(0F, 0F, 0F, 5, 2, 8);
this.shape9.setRotationPoint(-8F, 8F, -4F);
this.shape9.setTextureSize(64, 64);
this.shape9.mirror = true;
this.setRotation(this.shape9, 0F, 0F, 0F);
this.shape10 = new ModelRenderer(this, 0, 61);
this.shape10.addBox(0F, 0F, 0F, 6, 2, 1);
this.shape10.setRotationPoint(-3F, 8F, -4F);
this.shape10.setTextureSize(64, 64);
this.shape10.mirror = true;
this.setRotation(this.shape10, 0F, 0F, 0F);
this.shape11 = new ModelRenderer(this, 14, 61);
this.shape11.addBox(0F, 0F, 0F, 6, 2, 1);
this.shape11.setRotationPoint(-3F, 8F, 3F);
this.shape11.setTextureSize(64, 64);
this.shape11.mirror = true;
this.setRotation(this.shape11, 0F, 0F, 0F);
}
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
super.render(entity, f, f1, f2, f3, f4, f5);
setRotationAngles(f, f1, f2, f3, f4, f5, entity);
shape1.render(f5);
shape2.render(f5);
shape3.render(f5);
shape4.render(f5);
shape5.render(f5);
shape6.render(f5);
shape7.render(f5);
shape8.render(f5);
shape9.render(f5);
shape10.render(f5);
shape11.render(f5);
this.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
this.shape1.render(f5);
this.shape2.render(f5);
this.shape3.render(f5);
this.shape4.render(f5);
this.shape5.render(f5);
this.shape6.render(f5);
this.shape7.render(f5);
this.shape8.render(f5);
this.shape9.render(f5);
this.shape10.render(f5);
this.shape11.render(f5);
}
private void setRotation(ModelRenderer model, float x, float y, float z) {