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

@@ -21,49 +21,49 @@ public class ModelJarPot extends ModelBase {
ModelRenderer shape5;
public ModelJarPot() {
textureWidth = 32;
textureHeight = 64;
this.textureWidth = 32;
this.textureHeight = 64;
shape1 = new ModelRenderer(this, 0, 0);
shape1.addBox(0F, 0F, 0F, 10, 0, 10);
shape1.setRotationPoint(-5F, 24F, -5F);
shape1.setTextureSize(32, 64);
shape1.mirror = true;
setRotation(shape1, 0F, 0F, 0F);
shape2 = new ModelRenderer(this, 0, 28);
shape2.addBox(0F, 0F, 0F, 1, 6, 12);
shape2.setRotationPoint(-6F, 18F, -6F);
shape2.setTextureSize(32, 64);
shape2.mirror = true;
setRotation(shape2, 0F, 0F, 0F);
shape3 = new ModelRenderer(this, 0, 10);
shape3.addBox(0F, 0F, 0F, 1, 6, 12);
shape3.setRotationPoint(5F, 18F, -6F);
shape3.setTextureSize(32, 64);
shape3.mirror = true;
setRotation(shape3, 0F, 0F, 0F);
shape4 = new ModelRenderer(this, 0, 53);
shape4.addBox(0F, 0F, 0F, 10, 6, 1);
shape4.setRotationPoint(-5F, 18F, 5F);
shape4.setTextureSize(32, 64);
shape4.mirror = true;
setRotation(shape4, 0F, 0F, 0F);
shape5 = new ModelRenderer(this, 0, 46);
shape5.addBox(0F, 0F, 0F, 10, 6, 1);
shape5.setRotationPoint(-5F, 18F, -6F);
shape5.setTextureSize(32, 64);
shape5.mirror = true;
setRotation(shape5, 0F, 0F, 0F);
this.shape1 = new ModelRenderer(this, 0, 0);
this.shape1.addBox(0F, 0F, 0F, 10, 0, 10);
this.shape1.setRotationPoint(-5F, 24F, -5F);
this.shape1.setTextureSize(32, 64);
this.shape1.mirror = true;
this.setRotation(this.shape1, 0F, 0F, 0F);
this.shape2 = new ModelRenderer(this, 0, 28);
this.shape2.addBox(0F, 0F, 0F, 1, 6, 12);
this.shape2.setRotationPoint(-6F, 18F, -6F);
this.shape2.setTextureSize(32, 64);
this.shape2.mirror = true;
this.setRotation(this.shape2, 0F, 0F, 0F);
this.shape3 = new ModelRenderer(this, 0, 10);
this.shape3.addBox(0F, 0F, 0F, 1, 6, 12);
this.shape3.setRotationPoint(5F, 18F, -6F);
this.shape3.setTextureSize(32, 64);
this.shape3.mirror = true;
this.setRotation(this.shape3, 0F, 0F, 0F);
this.shape4 = new ModelRenderer(this, 0, 53);
this.shape4.addBox(0F, 0F, 0F, 10, 6, 1);
this.shape4.setRotationPoint(-5F, 18F, 5F);
this.shape4.setTextureSize(32, 64);
this.shape4.mirror = true;
this.setRotation(this.shape4, 0F, 0F, 0F);
this.shape5 = new ModelRenderer(this, 0, 46);
this.shape5.addBox(0F, 0F, 0F, 10, 6, 1);
this.shape5.setRotationPoint(-5F, 18F, -6F);
this.shape5.setTextureSize(32, 64);
this.shape5.mirror = true;
this.setRotation(this.shape5, 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);
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);
}
private void setRotation(ModelRenderer model, float x, float y, float z) {