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

@@ -29,161 +29,161 @@ public class ModelAuraPylonBottom extends ModelBase {
ModelRenderer pylonorn4;
public ModelAuraPylonBottom() {
textureWidth = 32;
textureHeight = 32;
this.textureWidth = 32;
this.textureHeight = 32;
outerpylon = new ModelRenderer(this, 0, 0);
outerpylon.addBox(0F, 0F, 0F, 2, 16, 2);
outerpylon.setRotationPoint(5F, 8F, 5F);
outerpylon.setTextureSize(64, 32);
outerpylon.mirror = true;
setRotation(outerpylon, 0F, 0F, 0F);
lowerconduit = new ModelRenderer(this, 9, 0);
lowerconduit.addBox(0F, 0F, 0.2F, 6, 1, 1);
lowerconduit.setRotationPoint(6F, 20F, 7F);
lowerconduit.setTextureSize(64, 32);
lowerconduit.mirror = true;
setRotation(lowerconduit, 0F, 2.356194F, 0F);
inlower1 = new ModelRenderer(this, 9, 3);
inlower1.addBox(0F, 0F, 0F, 1, 1, 3);
inlower1.setRotationPoint(3F, 20F, 3F);
inlower1.setTextureSize(64, 32);
inlower1.mirror = true;
setRotation(inlower1, 0F, 3.141593F, 0F);
inlower2 = new ModelRenderer(this, 9, 11);
inlower2.addBox(0F, 0F, 0F, 3, 1, 1);
inlower2.setRotationPoint(3F, 20F, 3F);
inlower2.setTextureSize(64, 32);
inlower2.mirror = true;
setRotation(inlower2, 0F, 3.141593F, 0F);
upperconduit = new ModelRenderer(this, 9, 0);
upperconduit.addBox(0F, 0F, 0.2F, 6, 1, 1);
upperconduit.setRotationPoint(6F, 11F, 7F);
upperconduit.setTextureSize(64, 32);
upperconduit.mirror = true;
setRotation(upperconduit, 0F, 2.356194F, 0F);
inupper2 = new ModelRenderer(this, 9, 11);
inupper2.addBox(0F, 0F, 0F, 3, 1, 1);
inupper2.setRotationPoint(3F, 11F, 3F);
inupper2.setTextureSize(64, 32);
inupper2.mirror = true;
setRotation(inupper2, 0F, 3.141593F, 0F);
inupper1 = new ModelRenderer(this, 9, 3);
inupper1.addBox(0F, 0F, 0F, 1, 1, 3);
inupper1.setRotationPoint(3F, 11F, 3F);
inupper1.setTextureSize(64, 32);
inupper1.mirror = true;
setRotation(inupper1, 0F, 3.141593F, 0F);
outuppersmooth1 = new ModelRenderer(this, 9, 8);
outuppersmooth1.addBox(-0.5F, 0F, 0.2F, 2, 1, 1);
outuppersmooth1.setRotationPoint(6F, 11F, 6F);
outuppersmooth1.setTextureSize(64, 32);
outuppersmooth1.mirror = true;
setRotation(outuppersmooth1, 0F, 2.792527F, 0F);
outuppersmooth2 = new ModelRenderer(this, 9, 8);
outuppersmooth2.addBox(0F, 0F, 0.1F, 2, 1, 1);
outuppersmooth2.setRotationPoint(5F, 11F, 7F);
outuppersmooth2.setTextureSize(64, 32);
outuppersmooth2.mirror = true;
setRotation(outuppersmooth2, 0F, 1.919862F, 0F);
inuppersmooth1 = new ModelRenderer(this, 9, 14);
inuppersmooth1.addBox(0.25F, 0F, -0.5F, 1, 1, 2);
inuppersmooth1.setRotationPoint(2F, 11F, 2F);
inuppersmooth1.setTextureSize(64, 32);
inuppersmooth1.mirror = true;
setRotation(inuppersmooth1, 0F, 0.3490659F, 0F);
inuppersmooth2 = new ModelRenderer(this, 9, 14);
inuppersmooth2.addBox(0.15F, 0F, 0.3F, 1, 1, 2);
inuppersmooth2.setRotationPoint(1F, 11F, 3F);
inuppersmooth2.setTextureSize(64, 32);
inuppersmooth2.mirror = true;
setRotation(inuppersmooth2, 0F, 1.22173F, 0F);
outlowersmooth2 = new ModelRenderer(this, 9, 8);
outlowersmooth2.addBox(0F, 0F, 0.1F, 2, 1, 1);
outlowersmooth2.setRotationPoint(5F, 20F, 7F);
outlowersmooth2.setTextureSize(64, 32);
outlowersmooth2.mirror = true;
setRotation(outlowersmooth2, 0F, 1.919862F, 0F);
outlowersmooth1 = new ModelRenderer(this, 9, 8);
outlowersmooth1.addBox(-0.5F, 0F, 0.2F, 2, 1, 1);
outlowersmooth1.setRotationPoint(6F, 20F, 6F);
outlowersmooth1.setTextureSize(64, 32);
outlowersmooth1.mirror = true;
setRotation(outlowersmooth1, 0F, 2.792527F, 0F);
inlowersmooth1 = new ModelRenderer(this, 9, 14);
inlowersmooth1.addBox(0.25F, 0F, -0.5F, 1, 1, 2);
inlowersmooth1.setRotationPoint(2F, 20F, 2F);
inlowersmooth1.setTextureSize(64, 32);
inlowersmooth1.mirror = true;
setRotation(inlowersmooth1, 0F, 0.3490659F, 0F);
inlowersmooth2 = new ModelRenderer(this, 9, 14);
inlowersmooth2.addBox(0.15F, 0F, 0.3F, 1, 1, 2);
inlowersmooth2.setRotationPoint(1F, 20F, 3F);
inlowersmooth2.setTextureSize(64, 32);
inlowersmooth2.mirror = true;
setRotation(inlowersmooth2, 0F, 1.22173F, 0F);
base = new ModelRenderer(this, 0, 22);
base.addBox(0F, 0F, 0F, 8, 2, 8);
base.setRotationPoint(0F, 22F, 0F);
base.setTextureSize(64, 32);
base.mirror = true;
setRotation(base, 0F, 0F, 0F);
baseornament = new ModelRenderer(this, 16, 14);
baseornament.addBox(0F, 0F, 0.2F, 2, 1, 6);
baseornament.setRotationPoint(-1F, 21F, 0F);
baseornament.setTextureSize(64, 32);
baseornament.mirror = true;
setRotation(baseornament, -0.1630138F, 0F, 0F);
pylonorn1 = new ModelRenderer(this, 18, 3);
pylonorn1.addBox(0F, -4F, 0F, 2, 3, 1);
pylonorn1.setRotationPoint(5F, 23.5F, 7F);
pylonorn1.setTextureSize(64, 32);
pylonorn1.mirror = true;
setRotation(pylonorn1, 0.2617994F, 0F, 0F);
pylonorn2 = new ModelRenderer(this, 18, 3);
pylonorn2.addBox(0F, -4F, -1F, 2, 3, 1);
pylonorn2.setRotationPoint(5F, 23.5F, 5F);
pylonorn2.setTextureSize(64, 32);
pylonorn2.mirror = true;
setRotation(pylonorn2, -0.2617994F, 0F, 0F);
pylonorn3 = new ModelRenderer(this, 18, 3);
pylonorn3.addBox(0F, -4F, 0F, 2, 3, 1);
pylonorn3.setRotationPoint(7F, 23.5F, 7F);
pylonorn3.setTextureSize(64, 32);
pylonorn3.mirror = true;
setRotation(pylonorn3, 0.2617994F, 1.570796F, 0F);
pylonorn4 = new ModelRenderer(this, 18, 3);
pylonorn4.addBox(0F, -4F, 0F, 2, 3, 1);
pylonorn4.setRotationPoint(5F, 23.5F, 5F);
pylonorn4.setTextureSize(64, 32);
pylonorn4.mirror = true;
setRotation(pylonorn4, 0.2617994F, -1.570796F, 0F);
this.outerpylon = new ModelRenderer(this, 0, 0);
this.outerpylon.addBox(0F, 0F, 0F, 2, 16, 2);
this.outerpylon.setRotationPoint(5F, 8F, 5F);
this.outerpylon.setTextureSize(64, 32);
this.outerpylon.mirror = true;
this.setRotation(this.outerpylon, 0F, 0F, 0F);
this.lowerconduit = new ModelRenderer(this, 9, 0);
this.lowerconduit.addBox(0F, 0F, 0.2F, 6, 1, 1);
this.lowerconduit.setRotationPoint(6F, 20F, 7F);
this.lowerconduit.setTextureSize(64, 32);
this.lowerconduit.mirror = true;
this.setRotation(this.lowerconduit, 0F, 2.356194F, 0F);
this.inlower1 = new ModelRenderer(this, 9, 3);
this.inlower1.addBox(0F, 0F, 0F, 1, 1, 3);
this.inlower1.setRotationPoint(3F, 20F, 3F);
this.inlower1.setTextureSize(64, 32);
this.inlower1.mirror = true;
this.setRotation(this.inlower1, 0F, 3.141593F, 0F);
this.inlower2 = new ModelRenderer(this, 9, 11);
this.inlower2.addBox(0F, 0F, 0F, 3, 1, 1);
this.inlower2.setRotationPoint(3F, 20F, 3F);
this.inlower2.setTextureSize(64, 32);
this.inlower2.mirror = true;
this.setRotation(this.inlower2, 0F, 3.141593F, 0F);
this.upperconduit = new ModelRenderer(this, 9, 0);
this.upperconduit.addBox(0F, 0F, 0.2F, 6, 1, 1);
this.upperconduit.setRotationPoint(6F, 11F, 7F);
this.upperconduit.setTextureSize(64, 32);
this.upperconduit.mirror = true;
this.setRotation(this.upperconduit, 0F, 2.356194F, 0F);
this.inupper2 = new ModelRenderer(this, 9, 11);
this.inupper2.addBox(0F, 0F, 0F, 3, 1, 1);
this.inupper2.setRotationPoint(3F, 11F, 3F);
this.inupper2.setTextureSize(64, 32);
this.inupper2.mirror = true;
this.setRotation(this.inupper2, 0F, 3.141593F, 0F);
this.inupper1 = new ModelRenderer(this, 9, 3);
this.inupper1.addBox(0F, 0F, 0F, 1, 1, 3);
this.inupper1.setRotationPoint(3F, 11F, 3F);
this.inupper1.setTextureSize(64, 32);
this.inupper1.mirror = true;
this.setRotation(this.inupper1, 0F, 3.141593F, 0F);
this.outuppersmooth1 = new ModelRenderer(this, 9, 8);
this.outuppersmooth1.addBox(-0.5F, 0F, 0.2F, 2, 1, 1);
this.outuppersmooth1.setRotationPoint(6F, 11F, 6F);
this.outuppersmooth1.setTextureSize(64, 32);
this.outuppersmooth1.mirror = true;
this.setRotation(this.outuppersmooth1, 0F, 2.792527F, 0F);
this.outuppersmooth2 = new ModelRenderer(this, 9, 8);
this.outuppersmooth2.addBox(0F, 0F, 0.1F, 2, 1, 1);
this.outuppersmooth2.setRotationPoint(5F, 11F, 7F);
this.outuppersmooth2.setTextureSize(64, 32);
this.outuppersmooth2.mirror = true;
this.setRotation(this.outuppersmooth2, 0F, 1.919862F, 0F);
this.inuppersmooth1 = new ModelRenderer(this, 9, 14);
this.inuppersmooth1.addBox(0.25F, 0F, -0.5F, 1, 1, 2);
this.inuppersmooth1.setRotationPoint(2F, 11F, 2F);
this.inuppersmooth1.setTextureSize(64, 32);
this.inuppersmooth1.mirror = true;
this.setRotation(this.inuppersmooth1, 0F, 0.3490659F, 0F);
this.inuppersmooth2 = new ModelRenderer(this, 9, 14);
this.inuppersmooth2.addBox(0.15F, 0F, 0.3F, 1, 1, 2);
this.inuppersmooth2.setRotationPoint(1F, 11F, 3F);
this.inuppersmooth2.setTextureSize(64, 32);
this.inuppersmooth2.mirror = true;
this.setRotation(this.inuppersmooth2, 0F, 1.22173F, 0F);
this.outlowersmooth2 = new ModelRenderer(this, 9, 8);
this.outlowersmooth2.addBox(0F, 0F, 0.1F, 2, 1, 1);
this.outlowersmooth2.setRotationPoint(5F, 20F, 7F);
this.outlowersmooth2.setTextureSize(64, 32);
this.outlowersmooth2.mirror = true;
this.setRotation(this.outlowersmooth2, 0F, 1.919862F, 0F);
this.outlowersmooth1 = new ModelRenderer(this, 9, 8);
this.outlowersmooth1.addBox(-0.5F, 0F, 0.2F, 2, 1, 1);
this.outlowersmooth1.setRotationPoint(6F, 20F, 6F);
this.outlowersmooth1.setTextureSize(64, 32);
this.outlowersmooth1.mirror = true;
this.setRotation(this.outlowersmooth1, 0F, 2.792527F, 0F);
this.inlowersmooth1 = new ModelRenderer(this, 9, 14);
this.inlowersmooth1.addBox(0.25F, 0F, -0.5F, 1, 1, 2);
this.inlowersmooth1.setRotationPoint(2F, 20F, 2F);
this.inlowersmooth1.setTextureSize(64, 32);
this.inlowersmooth1.mirror = true;
this.setRotation(this.inlowersmooth1, 0F, 0.3490659F, 0F);
this.inlowersmooth2 = new ModelRenderer(this, 9, 14);
this.inlowersmooth2.addBox(0.15F, 0F, 0.3F, 1, 1, 2);
this.inlowersmooth2.setRotationPoint(1F, 20F, 3F);
this.inlowersmooth2.setTextureSize(64, 32);
this.inlowersmooth2.mirror = true;
this.setRotation(this.inlowersmooth2, 0F, 1.22173F, 0F);
this.base = new ModelRenderer(this, 0, 22);
this.base.addBox(0F, 0F, 0F, 8, 2, 8);
this.base.setRotationPoint(0F, 22F, 0F);
this.base.setTextureSize(64, 32);
this.base.mirror = true;
this.setRotation(this.base, 0F, 0F, 0F);
this.baseornament = new ModelRenderer(this, 16, 14);
this.baseornament.addBox(0F, 0F, 0.2F, 2, 1, 6);
this.baseornament.setRotationPoint(-1F, 21F, 0F);
this.baseornament.setTextureSize(64, 32);
this.baseornament.mirror = true;
this.setRotation(this.baseornament, -0.1630138F, 0F, 0F);
this.pylonorn1 = new ModelRenderer(this, 18, 3);
this.pylonorn1.addBox(0F, -4F, 0F, 2, 3, 1);
this.pylonorn1.setRotationPoint(5F, 23.5F, 7F);
this.pylonorn1.setTextureSize(64, 32);
this.pylonorn1.mirror = true;
this.setRotation(this.pylonorn1, 0.2617994F, 0F, 0F);
this.pylonorn2 = new ModelRenderer(this, 18, 3);
this.pylonorn2.addBox(0F, -4F, -1F, 2, 3, 1);
this.pylonorn2.setRotationPoint(5F, 23.5F, 5F);
this.pylonorn2.setTextureSize(64, 32);
this.pylonorn2.mirror = true;
this.setRotation(this.pylonorn2, -0.2617994F, 0F, 0F);
this.pylonorn3 = new ModelRenderer(this, 18, 3);
this.pylonorn3.addBox(0F, -4F, 0F, 2, 3, 1);
this.pylonorn3.setRotationPoint(7F, 23.5F, 7F);
this.pylonorn3.setTextureSize(64, 32);
this.pylonorn3.mirror = true;
this.setRotation(this.pylonorn3, 0.2617994F, 1.570796F, 0F);
this.pylonorn4 = new ModelRenderer(this, 18, 3);
this.pylonorn4.addBox(0F, -4F, 0F, 2, 3, 1);
this.pylonorn4.setRotationPoint(5F, 23.5F, 5F);
this.pylonorn4.setTextureSize(64, 32);
this.pylonorn4.mirror = true;
this.setRotation(this.pylonorn4, 0.2617994F, -1.570796F, 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);
outerpylon.render(f5);
lowerconduit.render(f5);
inlower1.render(f5);
inlower2.render(f5);
upperconduit.render(f5);
inupper2.render(f5);
inupper1.render(f5);
outuppersmooth1.render(f5);
outuppersmooth2.render(f5);
inuppersmooth1.render(f5);
inuppersmooth2.render(f5);
outlowersmooth2.render(f5);
outlowersmooth1.render(f5);
inlowersmooth1.render(f5);
inlowersmooth2.render(f5);
base.render(f5);
baseornament.render(f5);
pylonorn1.render(f5);
pylonorn2.render(f5);
pylonorn3.render(f5);
pylonorn4.render(f5);
this.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
this.outerpylon.render(f5);
this.lowerconduit.render(f5);
this.inlower1.render(f5);
this.inlower2.render(f5);
this.upperconduit.render(f5);
this.inupper2.render(f5);
this.inupper1.render(f5);
this.outuppersmooth1.render(f5);
this.outuppersmooth2.render(f5);
this.inuppersmooth1.render(f5);
this.inuppersmooth2.render(f5);
this.outlowersmooth2.render(f5);
this.outlowersmooth1.render(f5);
this.inlowersmooth1.render(f5);
this.inlowersmooth2.render(f5);
this.base.render(f5);
this.baseornament.render(f5);
this.pylonorn1.render(f5);
this.pylonorn2.render(f5);
this.pylonorn3.render(f5);
this.pylonorn4.render(f5);
}
private void setRotation(ModelRenderer model, float x, float y, float z) {