Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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?

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

  • Author

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?

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.