Jump to content

[1.4.2] CustomBlockRender update ?


WiNeTel

Recommended Posts

Hello.

i have a customBlock all rendering work good, in the tileEntity have 2 parts

1. part get called over "onBlockActivated" depend the Item i use i change a few Variables stored in the tileEntity and depend the Variable changing the Texture, here work all good!

 

2. part, get called over "updateTick" here start a process that counts the Variables up and down, the packetHandler work, but the textures are not changing,

 

i get the variables in the renderBlock.class with "tile.getVariablex()"

 

how to say him to update the texture ?

 

when change code in the renderBlock.class to get the variable from "blockx.getVariableX()" and the block get it from the TileEntity then the blockrender work and update the textures, but then have the problem that the variableX is private static and all blocks use the same value!

 

 

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.

Announcements



×
×
  • Create New...

Important Information

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