Java class models breaking Task: Compile Java

Started by Darthdeclone on

Topic category: Help with MCreator software

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Java class models breaking Task: Compile Java

So whenever i try to run the client when i'm using any java class model in any workspace it crashes with this error:


Executing Gradle task: runClient
Build info: MCreator 2024.1.18518, forge-1.20.1, 64-bit, 16075 MB, Windows 11, JVM 17.0.10, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2024-05-13-17:48:29

> Task :compileJava
C:\Users\decla\MCreatorWorkspaces\animerpg2\src\main\java\net\mcreator\animerpg\client\model\Modelpuretitanvtwo.java:14: error: illegal start of type public class Modelpuretitanvtwo<T extends> extends EntityModel<> {
^
C:\Users\decla\MCreatorWorkspaces\animerpg2\src\main\java\net\mcreator\animerpg\client\model\Modelpuretitanvtwo.java:14: error: illegal start of type public class Modelpuretitanvtwo<T extends> extends EntityModel<> {
^
C:\Users\decla\MCreatorWorkspaces\animerpg2\src\main\java\net\mcreator\animerpg\client\model\Modelpuretitanvtwo.java:35: error: reached end of file while parsing }
^
3 errors
> Task :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 --info option to get more log output.
> Run with --scan to get full insights.
BUILD FAILED in 19s
1 actionable task: 1 executed

BUILD FAILED
Task completed in 19 seconds

This is one of my models code too:
// Made with Blockbench 4.10.0
// Exported for Minecraft version 1.17 or later with Mojang mappings
// Paste this class into your mod and generate all required imports


public class puretitanvtwo<T extends > extends EntityModel<> {
    // This layer location should be baked with EntityRendererProvider.Context in the entity renderer and passed into this model's constructor
    public static final ModelLayerLocation LAYER_LOCATION = new ModelLayerLocation(new ResourceLocation("modid", "puretitanvtwo"), "main");
    private final ModelPart bb_main;

    public puretitanvtwo(ModelPart root) {
        this.bb_main = root.getChild("bb_main");
    }

    public static LayerDefinition createBodyLayer() {
        MeshDefinition meshdefinition = new MeshDefinition();
        PartDefinition partdefinition = meshdefinition.getRoot();

        PartDefinition bb_main = partdefinition.addOrReplaceChild("bb_main", CubeListBuilder.create().texOffs(0, 0).addBox(-16.0F, -128.0F, -16.0F, 32.0F, 32.0F, 32.0F, new CubeDeformation(0.0F))
        .texOffs(0, 64).addBox(-16.0F, -96.0F, -8.0F, 32.0F, 48.0F, 16.0F, new CubeDeformation(0.0F))
        .texOffs(96, 64).addBox(-32.0F, -96.0F, -8.0F, 16.0F, 48.0F, 16.0F, new CubeDeformation(0.0F))
        .texOffs(0, 128).addBox(16.0F, -96.0F, -8.0F, 16.0F, 48.0F, 16.0F, new CubeDeformation(0.0F))
        .texOffs(128, 0).addBox(-16.0F, -48.0F, -8.0F, 16.0F, 48.0F, 16.0F, new CubeDeformation(0.0F))
        .texOffs(64, 128).addBox(0.0F, -48.0F, -8.0F, 16.0F, 48.0F, 16.0F, new CubeDeformation(0.0F)), PartPose.offset(0.0F, 24.0F, 0.0F));

        return LayerDefinition.create(meshdefinition, 256, 256);
    }

    @Override
    public void setupAnim( entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) {

    }

    @Override
    public void renderToBuffer(PoseStack poseStack, VertexConsumer vertexConsumer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) {
        bb_main.render(poseStack, vertexConsumer, packedLight, packedOverlay, red, green, blue, alpha);
    }
}