Jump to content

Recommended Posts

Posted

The value cookTime on the client TileEntity is always 0. What am I doing wrong?

 

TileEntityOven

  Reveal hidden contents

 

GuiOven

  Reveal hidden contents

 

Posted
  On 1/2/2018 at 11:27 PM, diesieben07 said:

Why not? Also, IItemHandler has nothing to do with this.

Expand  

Can I implement IInventory whilst also using IItemHandler. The way the furnace updates GUI is using the IInventory fields.

Posted
  On 1/2/2018 at 11:29 PM, diesieben07 said:

You could, in theory, but it makes no sense.

 

Yes, but you are not using IInventory.

Expand  

Exactly. So I cannot use setFields. I though marking the block dirty after setting the cookTime would automatically update it due to the update packet function. But it does not.

Posted
  On 1/2/2018 at 11:32 PM, diesieben07 said:

You don't need to.

 

Please don't use that way. You should keep network traffic as low as possible. Syncing cookTime every tick to every player within render distance even if they are not looking at the GUI is completely overkill.

Expand  

 

What way do you suggest? How to sync TileEntity GUI with the TileEntity?

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.