Импорт модели .java в ToolBox

172
13
25
Привет всем, может кто подсказать, почему не работает импорт модели? ( На примере куба )
YourClassName:
//This File was created with the Minecraft-SMP Modelling Toolbox 2.3.0.0
// Copyright (C) 2020 Minecraft-SMP.de
// This file is for Flan's Flying Mod Version 4.0.x+

// Model: YourClassName
// Model Creator:
// Created on: 23.08.2020 - 15:03:07
// Last changed on: 23.08.2020 - 15:03:07

package net.minecraft.src;

public class YourClassName extends ModelBase
{
    ModelRenderer Part_0; // Box_0

    public YourClassName()
    {
        textureWidth = 512;
        textureHeight = 512;

        Part_0 = new ModelRenderer(this, 0, 0); // Box_0
        Part_0.addBox(0F, 0F, 0F, 1, 1, 1);
        Part_0.setRotationPoint(0F, 0F, 0F);
        Part_0.setTextureSize(512, 512);
        Part_0.mirror = true;
        setRotation(Part_0, 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);
        Part_0.render(f5); // Box_0
    }

    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);
    }

}

1598185895171.png1598186228152.png
 
Сверху