Jump to content

[1.8] TESR not rendering separate TileEntities separately


Recommended Posts

Posted

I have a block that has a tile entity called EnergyBlock. I have bound its rendering to a TESR that is supposed to give it a different texture and rotation based on what its class says. However, all of them are rendering with the same texture and rotation, as if they're a block, not a TileEntity. They do, however, change texture when I make them part of the multiblock they are involved in, which means the TESR is in fact handling the rendering, just not well enough. What did I do wrong?

 

TileEntityEnergyBlock: https://github.com/AnZaNaMa/EnergyTools/blob/master/src/main/java/com/AnZaNaMa/EnergyTools/Entity/TileEntity/TileEntityEnergyBlock.java

 

EnergyBlockTESR: https://github.com/AnZaNaMa/EnergyTools/blob/master/src/main/java/com/AnZaNaMa/EnergyTools/Entity/TileEntity/TESR/EnergyBlockTESR.java

 

 

- Just because things are the way they are doesn't mean they can't be the way you want them to be. Unless they're aspen trees. You can tell they're aspens 'cause the way they are.

Posted

    public static byte textureNumber;
    public static byte rotation;

You're using statics for values that you want to have as a per object basis

I think its my java of the variables.

Posted

oh wow, i'm stupid. Thanks for the help!  :)

 

EDIT: Removing the static on the texturenumber and rotation just made it so that all of them get the default texture...

- Just because things are the way they are doesn't mean they can't be the way you want them to be. Unless they're aspen trees. You can tell they're aspens 'cause the way they are.

Posted

Oh yeah, I always try to forget networking exists because i'm terrible at it :P

- Just because things are the way they are doesn't mean they can't be the way you want them to be. Unless they're aspen trees. You can tell they're aspens 'cause the way they are.

Posted

Even when I added worldObj.markBlockForUpdate() and this.markDirty() to the setStraight and setCorner functions, the blocks are still all rendering with the default texture. I even went into the setSlaveBlocks() function in TileEntityEnergizer and added a worldObj.markBlockRangeForRenderUpdate() and it still won't work.

- Just because things are the way they are doesn't mean they can't be the way you want them to be. Unless they're aspen trees. You can tell they're aspens 'cause the way they are.

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.