Jump to content

Recommended Posts

Posted (edited)

Hi,

 

In my custom IBakedModel, the method getQuads is called every tick (I think). Is there a way that getQuads will only be called when I say "call getQuads"?

In the update method of my TileEntity, I did a check if the block has made a change. If so, I called the method "notifyBlockUpdate" once.

When I called notifyBlockUpdate, the getExtendedState method in my block was called. But now that I've set my model to be a custom IBakedModel, the getExtendedState method gets called every tick.

So, could I change this?

Edited by Kander16

Creator of the Master Chef Mod and many more to come.

 

If I helped you, please click the 'thank you' button.

Posted

Okay then, now it only calls getQuads when something changes inside the chunk (I think). When I place/remove a block etc...

Creator of the Master Chef Mod and many more to come.

 

If I helped you, please click the 'thank you' button.

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.