Posted December 4, 201510 yr 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.
December 4, 201510 yr 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.
December 8, 201510 yr Author 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.
December 8, 201510 yr Author Oh yeah, I always try to forget networking exists because i'm terrible at it - 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.
December 8, 201510 yr Author 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.