Invalid Java Name

Upvotes: 1
Issue description

Mcreator says Invalid Java Name

Code 

//Made with Blockbench
//Paste this code into your mod.

import org.lwjgl.opengl.GL11;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelBox;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.entity.Entity;

public class extends ModelBase {
    private final ModelRenderer bone;

    public () {
        textureWidth = 16;
        textureHeight = 16;

        bone = new ModelRenderer(this);
        bone.setRotationPoint(0.0F, 24.0F, 0.0F);
        bone.cubeList.add(new ModelBox(bone, 0, 0, -24.0F, -1.0F, -29.0F, 55, 1, 60, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -24.0F, -8.0F, -30.0F, 55, 1, 60, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -1.0F, -9.0F, -28.0F, 7, 1, 7, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, 16.0F, -9.0F, -3.0F, 7, 1, 7, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -1.0F, -9.0F, -3.0F, 7, 1, 7, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -16.0F, -9.0F, -22.0F, 7, 1, 7, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, 1.0F, -9.0F, 3.0F, 7, 1, 7, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -16.0F, -9.0F, 3.0F, 7, 1, 7, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -13.0F, -9.0F, -5.0F, 7, 1, 7, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, 4.0F, -9.0F, 20.0F, 7, 1, 7, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -13.0F, -9.0F, 20.0F, 7, 1, 7, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -20.0F, -9.0F, -3.0F, 7, 1, 7, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -3.0F, -9.0F, 22.0F, 7, 1, 7, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -20.0F, -9.0F, 22.0F, 7, 1, 7, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, 2.0F, -25.0F, 6.0F, 4, 18, 4, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -4.0F, -11.0F, 6.0F, 10, 2, 4, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -4.0F, -11.0F, -7.0F, 10, 2, 4, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, 2.0F, -25.0F, -7.0F, 4, 18, 4, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -1.0F, -55.0F, -12.0F, 7, 5, 4, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -1.0F, -55.0F, 10.0F, 7, 5, 4, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, 2.0F, -60.0F, -2.0F, 3, 2, 6, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -1.0F, -71.0F, -4.0F, 7, 11, 10, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -2.0F, -71.0F, 0.0F, 1, 11, 2, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -2.0F, -66.0F, -4.0F, 1, 1, 10, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -2.0F, -67.0F, -4.0F, 1, 1, 2, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -2.0F, -67.0F, 4.0F, 1, 1, 2, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -2.0F, -68.0F, -4.0F, 1, 1, 10, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -5.0F, -52.0F, -12.0F, 7, 5, 4, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -5.0F, -52.0F, 10.0F, 7, 5, 4, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -8.0F, -49.0F, -12.0F, 7, 5, 4, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -8.0F, -49.0F, 10.0F, 7, 5, 4, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -11.0F, -47.0F, -12.0F, 4, 5, 4, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -11.0F, -47.0F, 10.0F, 4, 5, 4, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -14.0F, -47.0F, 11.0F, 3, 5, 2, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -13.0F, -50.0F, 12.0F, 2, 3, 2, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -13.0F, -51.0F, 14.0F, 2, 3, 6, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -13.0F, -49.0F, 20.0F, 2, 5, 2, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -13.0F, -45.0F, 21.0F, 2, 5, 2, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -13.0F, -42.0F, 21.0F, 2, 5, 2, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -16.0F, -38.0F, 18.0F, 8, 8, 8, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -14.0F, -47.0F, -10.0F, 4, 5, 1, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -16.0F, -55.0F, -18.0F, 2, 30, 20, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -18.0F, -54.0F, -17.0F, 2, 27, 18, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, 1.0F, -58.0F, -7.0F, 6, 33, 16, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, 0.0F, -39.0F, 3.0F, 8, 16, 8, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, 0.0F, -39.0F, -9.0F, 8, 16, 8, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, 0.0F, -55.0F, -8.0F, 8, 16, 18, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -25.0F, -2.0F, -29.0F, 55, 1, 61, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -25.0F, -6.0F, -29.0F, 55, 1, 61, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -25.0F, -3.0F, -29.0F, 58, 1, 62, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -25.0F, -7.0F, -29.0F, 58, 1, 62, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -27.0F, -4.0F, -31.0F, 61, 1, 65, 0.0F, false));
        bone.cubeList.add(new ModelBox(bone, 0, 0, -27.0F, -5.0F, -30.0F, 61, 1, 65, 0.0F, false));
    }

    @Override
    public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
        bone.render(f5);
    }
    public void setRotationAngle(ModelRenderer 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.