Jump to content

[Unsolved] TileEntitySpecialRenderer not updating it's textures [1.6.2]


Recommended Posts

Posted

So, I made a custom block model and it works, I added some checklines to check if the redstone control works, and it did. Now my only problem is that in the TileEntitySpecialRenderer class, it checks for a boolean in the TileEntity class, which is updated by the block itself, but it isn't updating it's textures based on the state of the boolean. It only uses 1 texture.

 

TileEntitySpecialRenderer.java

 

  Reveal hidden contents

 

 

TileEntity.java:

 

  Reveal hidden contents

 

 

Block.java:

 

  Reveal hidden contents

 

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted

BTW does anyone know if there's an update method that checks every tick or something like that, just like in the TileEntity class with the updateEntity class.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted
  On 7/17/2013 at 8:55 AM, diesieben07 said:

You need to sync the state of your TileEntity via the getDescriptionPacket and onDataPacket methods. Since Minecraft is a Client/Server application there are 2 TileEntity instances for each TE. One on the client and one serverside. Your data only gets modified in the serverside one if you don't send packets.

That could be the case, but which packets do i have to send for them to sync?

  Quote
  Quote

BTW does anyone know if there's an update method that checks every tick or something like that, just like in the TileEntity class with the updateEntity class.

Are you talking about TickHandlers?

If it kinda like the same as the updateEntity() method in the TileEntity class, that could be yes.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted
  On 7/17/2013 at 9:21 AM, diesieben07 said:

  Quote

That could be the case, but which packets do i have to send for them to sync?

From getDescriptionPacket return a Packet132TileEntityData. That has an NBTTagCompound as its parameter, put all the data you need on the client side in there, and read it back in onDataPacket (the Packet will arrive there).

Ok that makes sense.

  Quote

  Quote
If it kinda like the same as the updateEntity() method in the TileEntity class, that could be yes.

Kinda, yes. What do you want to achieve?

At first, I thaught that the TileEntitySpecialRenderer class only got the TileEntity booleans once, and that I needed a method to constantly check for the booleans.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

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.