12 avr. 2019, 07:31

mon code m’affiche des erreurs(techne)

le code

// Date: 12/04/19 09:03:51
// Template version 1.1
// Java generated by Techne
// Keep in mind that you still need to fill in some blanks
// - ZeuX






package net.minecraft.src;

public class ModelComputer extends ModelBase
{
  //fields
    ModelRenderer Base;
    ModelRenderer Space;
    ModelRenderer Touch1;
    ModelRenderer Touch1;
    ModelRenderer Shape1;
    ModelRenderer Shape2;
    ModelRenderer Shape3;
    ModelRenderer Shape4;
  
  public ModelComputer()
  {
    textureWidth = 64;
    textureHeight = 32;
    
      Base = new ModelRenderer(this, 0, 0);
      Base.addBox(0F, 0F, 0F, 13, 1, 14);
      Base.setRotationPoint(-6F, 23F, -7F);
      Base.setTextureSize(64, 32);
      Base.mirror = true;
      setRotation(Base, 0F, 0F, 0F);
      Space = new ModelRenderer(this, 0, 0);
      Space.addBox(0F, 0F, 0F, 1, 1, 8);
      Space.setRotationPoint(5F, 22.23333F, -4F);
      Space.setTextureSize(64, 32);
      Space.mirror = true;
      setRotation(Space, 0F, 0F, 0F);
      Touch1 = new ModelRenderer(this, 0, 0);
      Touch1.addBox(0F, 0F, 0F, 1, 1, 1);
      Touch1.setRotationPoint(-3.4F, 22F, 5F);
      Touch1.setTextureSize(64, 32);
      Touch1.mirror = true;
      setRotation(Touch1, 0F, 0F, 0F);
      Touch1 = new ModelRenderer(this, 0, 0);
      Touch1.addBox(0F, 0F, 0F, 12, 1, 7);
      Touch1.setRotationPoint(-3.133333F, 22.53333F, 6F);
      Touch1.setTextureSize(64, 32);
      Touch1.mirror = true;
      setRotation(Touch1, 0F, 1.570796F, 0F);
      Shape1 = new ModelRenderer(this, 0, 0);
      Shape1.addBox(0F, 0F, 0F, 4, 6, 3);
      Shape1.setRotationPoint(-6F, 17F, 2F);
      Shape1.setTextureSize(64, 32);
      Shape1.mirror = true;
      setRotation(Shape1, 0F, 1.570796F, 0F);
      Shape2 = new ModelRenderer(this, 0, 0);
      Shape2.addBox(0F, 0F, 0F, 1, 1, 16);
      Shape2.setRotationPoint(-5F, 16.46667F, -8F);
      Shape2.setTextureSize(64, 32);
      Shape2.mirror = true;
      setRotation(Shape2, 0F, 0F, 0F);
      Shape3 = new ModelRenderer(this, 0, 0);
      Shape3.addBox(0F, 0F, 0F, 1, 9, 16);
      Shape3.setRotationPoint(-5F, 8F, -8F);
      Shape3.setTextureSize(64, 32);
      Shape3.mirror = true;
      setRotation(Shape3, 0F, 0F, 0F);
      Shape4 = new ModelRenderer(this, 0, 0);
      Shape4.addBox(0F, 0F, 0F, 1, 9, 4);
      Shape4.setRotationPoint(-6F, 8F, -2F);
      Shape4.setTextureSize(64, 32);
      Shape4.mirror = true;
      setRotation(Shape4, 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);
    Base.render(f5);
    Space.render(f5);
    Touch1.render(f5);
    Touch1.render(f5);
    Shape1.render(f5);
    Shape2.render(f5);
    Shape3.render(f5);
    Shape4.render(f5);
  }
  
  private void setRotation(ModelRenderer model, float x, float y, float z)
  {
    model.rotateAngleX = x;
    model.rotateAngleY = y;
    model.rotateAngleZ = z;
  }
  
  public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity)
  {
    super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
  }

}

ceci est l’ancien