ItsAMysteriousYT Posted April 25, 2015 Posted April 25, 2015 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 Quote
Elix_x Posted April 25, 2015 Posted April 25, 2015 Do simplier: call another rendering method (like renderItem or what you want to call it) from IItemRenderer... Isn't that easier??? Quote Check out my mods: BTAM Armor sets Avoid Exploding Creepers Tools compressor Anti Id Conflict Key bindings overhaul Colourfull blocks Invisi Zones
ItsAMysteriousYT Posted April 25, 2015 Author Posted April 25, 2015 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 Quote
Recommended Posts
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.