NEED FAST HELP!

1 post / 0 new
Offline
Last seen: 5 months 2 weeks ago
Joined: 05/13/2015 - 23:57
Gems: 0
NEED FAST HELP!

I am having an issue with this current ava code, I am trying to add this custom model for a block, and get the following error:

>C:\Users\Brenden\Desktop\mcreator\forge\build\sources\java\mod\mcreator\mcreator_floatinglantern.java:230: error: ';' expected
>private final Modelfloating lantern model;
>                                   ^
>C:\Users\Brenden\Desktop\mcreator\forge\build\sources\java\mod\mcreator\mcreator_floatinglantern.java:230: error: <identifier> expected
>private final Modelfloating lantern model;
>                                         ^
>C:\Users\Brenden\Desktop\mcreator\forge\build\sources\java\mod\mcreator\mcreator_floatinglantern.java:231: error: '(' or '[' expected
>public TileEntityCustomRenderer() {this.model = new Modelfloating lantern();}
>                                                                  ^
>C:\Users\Brenden\Desktop\mcreator\forge\build\sources\java\mod\mcreator\mcreator_floatinglantern.java:231: error: illegal start of expression
>public TileEntityCustomRenderer() {this.model = new Modelfloating lantern();}
>                                                                          ^
>C:\Users\Brenden\Desktop\mcreator\forge\build\sources\java\mod\mcreator\mcreator_floatinglantern.java:231: error: not a statement
>public TileEntityCustomRenderer() {this.model = new Modelfloating lantern();}
>                                                                         ^
>C:\Users\Brenden\Desktop\mcreator\forge\build\sources\java\mod\mcreator\mcreator_floatinglantern.java:261: error: '{' expected
>public static class Modelfloating lantern extends ModelBase
>                                 ^
>6 errors
>:compileJava FAILED
>FAILURE: Build failed with an exception.
>* What went wrong:
>Execution failed for task ':compileJava'.
>> Compilation failed; see the compiler error output for details.
>* Try:
>Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

 

When I look at the java folder this is what I see:

package net.minecraft.src;

public class Modelfloating lantern extends ModelBase
{
  //fields
    ModelRenderer Shape1;
    ModelRenderer Shape2;
    ModelRenderer Shape3;
    ModelRenderer Shape4;
  
  public Modelfloating lantern()
  {
    textureWidth = 64;
    textureHeight = 32;
    
      Shape1 = new ModelRenderer(this, 51, 0);
      Shape1.addBox(0F, 0F, 0F, 3, 24, 2);
      Shape1.setRotationPoint(-1F, 0F, 0F);
      Shape1.setTextureSize(64, 32);
      Shape1.mirror = true;
      setRotation(Shape1, 0F, 0F, 0F);
      Shape2 = new ModelRenderer(this, 0, 17);
      Shape2.addBox(-1F, 0F, -1F, 5, 3, 4);
      Shape2.setRotationPoint(-1F, 21F, 0F);
      Shape2.setTextureSize(64, 32);
      Shape2.mirror = true;
      setRotation(Shape2, 0F, 0F, 0F);
      Shape3 = new ModelRenderer(this, 30, 5);
      Shape3.addBox(0F, 0F, 0F, 1, 2, 5);
      Shape3.setRotationPoint(0F, 2F, 0F);
      Shape3.setTextureSize(64, 32);
      Shape3.mirror = true;
      setRotation(Shape3, 0F, 0F, 0F);
      Shape4 = new ModelRenderer(this, 0, 0);
      Shape4.addBox(0F, 0F, 0F, 1, 1, 1);
      Shape4.setRotationPoint(0F, 4F, 4F);
      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);
    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)
  {
    super.setRotationAngles(f, f1, f2, f3, f4, f5);
  }

}

 

 

What am I doing wrong, and how can i fix it?

Thanks for you help!