Jump to content

[1.11] Only call getQuads when needs to be called?


Kander16

Recommended Posts

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.

Link to comment
Share on other sites

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.



×
×
  • Create New...

Important Information

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