Posted April 25, 201510 yr Hey there, i was tryying to find out if a tileEntity is the one i create to render a 3d item in the playerinventory or if it is the one from a block in the world so i tried this but it won't work: if(tile.getWorldObj()!=null&&tile.getBlockType()!=null){ /**Some rendering code that should be excecuted only when the block is in the world*/ }else { //Rendering in inventory } I hope somebody can help me
April 25, 201510 yr Do simplier: call another rendering method (like renderItem or what you want to call it) from IItemRenderer... Isn't that easier??? Check out my mods: BTAM Armor sets Avoid Exploding Creepers Tools compressor Anti Id Conflict Key bindings overhaul Colourfull blocks Invisi Zones
April 25, 201510 yr Author Rendering the item works, My problem is, that i have to render it different depending on its world. So if it has no world, it has to excecute some other render options
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.