Jump to content

Recommended Posts

Posted

Hello

in 1.14.3 i had this in my models?

    public void render(BluesEntity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scale)
    {
        bone.render(scale);
    }

it tells the model to wich bodyparts it has to render, because they are not child of others.

Childs are automaticly rendered with their parents.

but now it does not know this method any more.

How do i do this now?

Posted (edited)
4 minutes ago, Drachenbauer said:

Hello

in 1.14.3 i had this in my models?


    public void render(BluesEntity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scale)
    {
        bone.render(scale);
    }

it tells the model to wich bodyparts it has to render, because they are not child of others.

Childs are automaticly rendered with their parents.

but now it does not know this method any more.

How do i do this now?

Well I am not exactly sure how does it work but you need these two functions:
 

Spoiler

    @Override
    protected Iterable<ModelRenderer> func_225602_a_() {
      //head/Main parts here . You need this - without it your entity is going to crash minecraft when spawned. I think it's for scaling, but I 		may be completely wrong.
        return ImmutableList.of(head);
    }

    @Override
    protected Iterable<ModelRenderer> func_225600_b_() {
      //All the other parts (without child parts) e.g.
        return ImmutableList.of(leg1,leg2,body,etc);
    }

 

 

Edited by Krevik
Posted (edited)
12 hours ago, Drachenbauer said:

I cannot override them, it looks like they are specific for "QuadrupedModel" and my entities don´t extend this.

Can i use them without override them?

Ahhh I forgot about this XD No, you must override two iterable functions, just check in the model class that your model is extending what are their names.
ZombieModel for e.g. extends BipedModel which has these two iterables:
 

Spoiler

    protected Iterable<ModelRenderer> getHeadParts() {
        return ImmutableList.of(this.bipedHead);
    }

    protected Iterable<ModelRenderer> getBodyParts() {
        return ImmutableList.of(this.bipedBody, this.bipedRightArm, this.bipedLeftArm, this.bipedRightLeg, this.bipedLeftLeg, this.bipedHeadwear);
    }

 

It also depends on your actual mappings, but the point is you need to find these two iterables.

Edited by Krevik

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.