Changed access to use this qualifier
This commit is contained in:
@@ -34,60 +34,60 @@ public class ModelCompass extends ModelBase
|
||||
final ModelRenderer Pointer;
|
||||
|
||||
public ModelCompass() {
|
||||
textureWidth = 16;
|
||||
textureHeight = 8;
|
||||
this.textureWidth = 16;
|
||||
this.textureHeight = 8;
|
||||
|
||||
Ring1 = new ModelRenderer( this, 0, 0 );
|
||||
Ring1.addBox( 0F, 0F, 0F, 4, 1, 1 );
|
||||
Ring1.setRotationPoint( -2F, 22F, 2F );
|
||||
Ring1.setTextureSize( 16, 8 );
|
||||
Ring1.mirror = true;
|
||||
setRotation( Ring1, 0F, 0F, 0F );
|
||||
this.Ring1 = new ModelRenderer( this, 0, 0 );
|
||||
this.Ring1.addBox( 0F, 0F, 0F, 4, 1, 1 );
|
||||
this.Ring1.setRotationPoint( -2F, 22F, 2F );
|
||||
this.Ring1.setTextureSize( 16, 8 );
|
||||
this.Ring1.mirror = true;
|
||||
this.setRotation( this.Ring1, 0F, 0F, 0F );
|
||||
|
||||
Ring2 = new ModelRenderer( this, 0, 0 );
|
||||
Ring2.addBox( 0F, 0F, 0F, 1, 1, 4 );
|
||||
Ring2.setRotationPoint( -3F, 22F, -2F );
|
||||
Ring2.setTextureSize( 16, 8 );
|
||||
Ring2.mirror = true;
|
||||
setRotation( Ring2, 0F, 0F, 0F );
|
||||
this.Ring2 = new ModelRenderer( this, 0, 0 );
|
||||
this.Ring2.addBox( 0F, 0F, 0F, 1, 1, 4 );
|
||||
this.Ring2.setRotationPoint( -3F, 22F, -2F );
|
||||
this.Ring2.setTextureSize( 16, 8 );
|
||||
this.Ring2.mirror = true;
|
||||
this.setRotation( this.Ring2, 0F, 0F, 0F );
|
||||
|
||||
Ring3 = new ModelRenderer( this, 0, 0 );
|
||||
Ring3.addBox( 0F, 0F, 0F, 4, 1, 1 );
|
||||
Ring3.setRotationPoint( -2F, 22F, -3F );
|
||||
Ring3.setTextureSize( 16, 8 );
|
||||
Ring3.mirror = true;
|
||||
setRotation( Ring3, 0F, 0F, 0F );
|
||||
this.Ring3 = new ModelRenderer( this, 0, 0 );
|
||||
this.Ring3.addBox( 0F, 0F, 0F, 4, 1, 1 );
|
||||
this.Ring3.setRotationPoint( -2F, 22F, -3F );
|
||||
this.Ring3.setTextureSize( 16, 8 );
|
||||
this.Ring3.mirror = true;
|
||||
this.setRotation( this.Ring3, 0F, 0F, 0F );
|
||||
|
||||
Ring4 = new ModelRenderer( this, 0, 0 );
|
||||
Ring4.addBox( 0F, 0F, 0F, 1, 1, 4 );
|
||||
Ring4.setRotationPoint( 2F, 22F, -2F );
|
||||
Ring4.setTextureSize( 16, 8 );
|
||||
Ring4.mirror = true;
|
||||
setRotation( Ring4, 0F, 0F, 0F );
|
||||
this.Ring4 = new ModelRenderer( this, 0, 0 );
|
||||
this.Ring4.addBox( 0F, 0F, 0F, 1, 1, 4 );
|
||||
this.Ring4.setRotationPoint( 2F, 22F, -2F );
|
||||
this.Ring4.setTextureSize( 16, 8 );
|
||||
this.Ring4.mirror = true;
|
||||
this.setRotation( this.Ring4, 0F, 0F, 0F );
|
||||
|
||||
Middle = new ModelRenderer( this, 0, 0 );
|
||||
Middle.addBox( 0F, 0F, 0F, 1, 1, 1 );
|
||||
Middle.setRotationPoint( -0.5333334F, 22F, -0.5333334F );
|
||||
Middle.setTextureSize( 16, 8 );
|
||||
Middle.mirror = true;
|
||||
setRotation( Middle, 0F, 0F, 0F );
|
||||
this.Middle = new ModelRenderer( this, 0, 0 );
|
||||
this.Middle.addBox( 0F, 0F, 0F, 1, 1, 1 );
|
||||
this.Middle.setRotationPoint( -0.5333334F, 22F, -0.5333334F );
|
||||
this.Middle.setTextureSize( 16, 8 );
|
||||
this.Middle.mirror = true;
|
||||
this.setRotation( this.Middle, 0F, 0F, 0F );
|
||||
|
||||
Pointer = new ModelRenderer( this, 0, 0 );
|
||||
Pointer.setTextureOffset( 0, 5 );
|
||||
Pointer.addBox( -0.5F, 0F, 0F, 1, 1, 2 );
|
||||
Pointer.setRotationPoint( 0.5F, 22.5F, 0.5F );
|
||||
Pointer.setTextureSize( 16, 8 );
|
||||
Pointer.mirror = true;
|
||||
Pointer.offsetZ = -0.034f;
|
||||
Pointer.offsetX = -0.034f;
|
||||
setRotation( Pointer, 0F, 0F, 0F );
|
||||
this.Pointer = new ModelRenderer( this, 0, 0 );
|
||||
this.Pointer.setTextureOffset( 0, 5 );
|
||||
this.Pointer.addBox( -0.5F, 0F, 0F, 1, 1, 2 );
|
||||
this.Pointer.setRotationPoint( 0.5F, 22.5F, 0.5F );
|
||||
this.Pointer.setTextureSize( 16, 8 );
|
||||
this.Pointer.mirror = true;
|
||||
this.Pointer.offsetZ = -0.034f;
|
||||
this.Pointer.offsetX = -0.034f;
|
||||
this.setRotation( this.Pointer, 0F, 0F, 0F );
|
||||
|
||||
Base = new ModelRenderer( this, 0, 0 );
|
||||
Base.addBox( 0F, 0F, 0F, 4, 1, 4 );
|
||||
Base.setRotationPoint( -2F, 23F, -2F );
|
||||
Base.setTextureSize( 16, 8 );
|
||||
Base.mirror = true;
|
||||
setRotation( Base, 0F, 0F, 0F );
|
||||
this.Base = new ModelRenderer( this, 0, 0 );
|
||||
this.Base.addBox( 0F, 0F, 0F, 4, 1, 4 );
|
||||
this.Base.setRotationPoint( -2F, 23F, -2F );
|
||||
this.Base.setTextureSize( 16, 8 );
|
||||
this.Base.mirror = true;
|
||||
this.setRotation( this.Base, 0F, 0F, 0F );
|
||||
}
|
||||
|
||||
private void setRotation(ModelRenderer model, float x, float y, float z)
|
||||
@@ -99,18 +99,18 @@ public class ModelCompass extends ModelBase
|
||||
|
||||
public void renderAll(float rad)
|
||||
{
|
||||
setRotation( Pointer, 0F, 0F, 0F );
|
||||
this.setRotation( this.Pointer, 0F, 0F, 0F );
|
||||
|
||||
Pointer.rotateAngleY = rad;
|
||||
this.Pointer.rotateAngleY = rad;
|
||||
|
||||
Base.render( 0.0625F );
|
||||
Middle.render( 0.0625F );
|
||||
this.Base.render( 0.0625F );
|
||||
this.Middle.render( 0.0625F );
|
||||
|
||||
Pointer.render( 0.0625F );
|
||||
this.Pointer.render( 0.0625F );
|
||||
|
||||
Ring1.render( 0.0625F );
|
||||
Ring2.render( 0.0625F );
|
||||
Ring3.render( 0.0625F );
|
||||
Ring4.render( 0.0625F );
|
||||
this.Ring1.render( 0.0625F );
|
||||
this.Ring2.render( 0.0625F );
|
||||
this.Ring3.render( 0.0625F );
|
||||
this.Ring4.render( 0.0625F );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user