Posted June 28, 201510 yr Whats the most effective way of rendering an entity invisible? BioWarfare Mod: http://goo.gl/BYWQty
June 28, 201510 yr what are you using? a tesr or a model? if you use a tesr just put a break statement at the top of your function
June 28, 201510 yr Author I was actually just using RenderingRegistry.registerEntityRenderingHandler to render it like a snowball BioWarfare Mod: http://goo.gl/BYWQty
June 28, 201510 yr Dont render it at all? Im not sure if this answer your question though. Could you explain a bit more what you are looking for? For examle: the potion effect, semi transparant rendering, switching from visible to invisible and back, partial transparant etc. Projects: Discontinued: - N2ConfigAPI - Meachanical Crafting Table Latest: - CollectionUtils Coöperations: - InGameConfigManager
June 28, 201510 yr Author If i don't render my entity it will render as a while cuboid and i want to get rid of that so i cant see anything. BioWarfare Mod: http://goo.gl/BYWQty
June 29, 201510 yr Author As i wasnt using do render before can you explain by what you mean leave empty? BioWarfare Mod: http://goo.gl/BYWQty
June 29, 201510 yr doRender(parameters) { // this is an empty method } Projects: Discontinued: - N2ConfigAPI - Meachanical Crafting Table Latest: - CollectionUtils Coöperations: - InGameConfigManager
June 30, 201510 yr I like to name mine 'RenderNothing' @SideOnly(Side.CLIENT) public class RenderNothing extends Render { public RenderNothing() {} @Override public void doRender(Entity entity, double x, double y, double z, float yaw, float partialTick) {} @Override protected ResourceLocation getEntityTexture(Entity entity) { return null; } } Register this renderer instead of RenderItemSnowball and voilá, nothing renders http://i.imgur.com/NdrFdld.png[/img]
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.