Blockbench Java Name Code Issue

Status
Duplicate
Type
Product/platform
Not applicable
Priority
Normal
Issue description

I've seached this entire website for an answer and no luck. Invalid java name when I try to import. All names have no spaces or numbers, so what could be the issue?

 

// Made with Blockbench 3.5.0
// Exported for Minecraft version 1.14
// Paste this class into your mod and generate all required imports

public class MinecraftGrasshopperID extends EntityModel {
    private final RendererModel bodysegment;
    private final RendererModel leftlegbackseg;
    private final RendererModel leftlegbacksegtwo;
    private final RendererModel rightlegbackseg;
    private final RendererModel rightlegbacksegtwo;
    private final RendererModel rightlegfront;
    private final RendererModel lefttlegfront;
    private final RendererModel lefttlegfronttwo;
    private final RendererModel rightlegfronttwo;
    private final RendererModel head;

    public MinecraftGrasshopperID() {
        textureWidth = 32;
        textureHeight = 64;

        bodysegment = new RendererModel(this);
        bodysegment.setRotationPoint(0.0F, 22.0F, 0.0F);
        bodysegment.cubeList.add(new ModelBox(bodysegment, 0, 0, -2.0F, -2.0F, -3.0F, 3, 3, 7, 0.0F, false));

        leftlegbackseg = new RendererModel(this);
        leftlegbackseg.setRotationPoint(0.0F, 22.0F, -2.0F);
        setRotationAngle(leftlegbackseg, -25.0F, 0.0F, 0.0F);
        leftlegbackseg.cubeList.add(new ModelBox(leftlegbackseg, 12, 12, 1.0F, -5.5881F, 3.0359F, 1, 4, 2, 0.0F, false));

        leftlegbacksegtwo = new RendererModel(this);
        leftlegbacksegtwo.setRotationPoint(0.0F, 23.575F, 2.575F);
        setRotationAngle(leftlegbacksegtwo, 20.0F, 0.0F, 0.0F);
        leftlegbacksegtwo.cubeList.add(new ModelBox(leftlegbacksegtwo, 0, 16, 1.0F, -3.4352F, 2.7519F, 1, 5, 1, 0.0F, false));

        rightlegbackseg = new RendererModel(this);
        rightlegbackseg.setRotationPoint(4.0F, 24.625F, -1.0F);
        setRotationAngle(rightlegbackseg, -25.0F, 0.0F, 0.0F);
        rightlegbackseg.cubeList.add(new ModelBox(rightlegbackseg, 0, 0, -7.0F, -7.564F, 1.0239F, 1, 4, 2, 0.0F, false));

        rightlegbacksegtwo = new RendererModel(this);
        rightlegbacksegtwo.setRotationPoint(-4.0F, 24.5F, 0.25F);
        setRotationAngle(rightlegbacksegtwo, 20.0F, 0.0F, 0.0F);
        rightlegbacksegtwo.cubeList.add(new ModelBox(rightlegbacksegtwo, 13, 0, 1.0F, -3.5204F, 5.2694F, 1, 5, 1, 0.0F, false));

        rightlegfront = new RendererModel(this);
        rightlegfront.setRotationPoint(0.0F, 24.0F, 0.0F);
        rightlegfront.cubeList.add(new ModelBox(rightlegfront, 17, 0, 1.0F, -2.75F, -0.75F, 1, 3, 1, 0.0F, false));

        lefttlegfront = new RendererModel(this);
        lefttlegfront.setRotationPoint(0.0F, 24.0F, 0.0F);
        lefttlegfront.cubeList.add(new ModelBox(lefttlegfront, 16, 10, -3.0F, -2.75F, -0.75F, 1, 3, 1, 0.0F, false));

        lefttlegfronttwo = new RendererModel(this);
        lefttlegfronttwo.setRotationPoint(0.0F, 24.0F, 0.0F);
        lefttlegfronttwo.cubeList.add(new ModelBox(lefttlegfronttwo, 8, 16, -3.0F, -2.75F, -2.5F, 1, 3, 1, 0.0F, false));

        rightlegfronttwo = new RendererModel(this);
        rightlegfronttwo.setRotationPoint(0.0F, 24.0F, 0.0F);
        rightlegfronttwo.cubeList.add(new ModelBox(rightlegfronttwo, 4, 16, 1.0F, -2.75F, -2.5F, 1, 3, 1, 0.0F, false));

        head = new RendererModel(this);
        head.setRotationPoint(0.0F, 24.0F, 0.0F);
        head.cubeList.add(new ModelBox(head, 0, 10, -1.975F, -5.25F, -5.25F, 3, 3, 3, 0.0F, false));
    }

    @Override
    public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
        bodysegment.render(f5);
        leftlegbackseg.render(f5);
        leftlegbacksegtwo.render(f5);
        rightlegbackseg.render(f5);
        rightlegbacksegtwo.render(f5);
        rightlegfront.render(f5);
        lefttlegfront.render(f5);
        lefttlegfronttwo.render(f5);
        rightlegfronttwo.render(f5);
        head.render(f5);
    }

    public void setRotationAngle(RendererModel modelRenderer, float x, float y, float z) {
        modelRenderer.rotateAngleX = x;
        modelRenderer.rotateAngleY = y;
        modelRenderer.rotateAngleZ = z;
    }
}

Issue comments



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.