Posted September 2, 201312 yr Hello, Without modifying base classes such as GuiIngame.java, I'm not sure how I would do this. For example, how would I remove the armour or health bars from displaying at all? In my mind, using something like RenderGameOverlayEvent or TickType.RENDER would overlay or add something to the screen, but I don't think using it to delete something would be possible without something maybe like event.setCancelled(true); like Bukkit does. Does anyone else know how I would do this?
September 2, 201312 yr RenderGameOverlayEvent and cancel what you need ... how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
September 2, 201312 yr RenderGameOverlayEvent and cancel what you need ... ez pz I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes. I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there
September 2, 201312 yr 1 register your event handler 2 in your handler check if its the thing you want to stop 3 cancel it how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
September 2, 201312 yr Author How would I check to see which is which... I can't find out how to locate the health GUI and they translate that into a method I can disable.
September 2, 201312 yr RenderGameOverlayEvent contains the type, check if its the type you want they are called very obvious names... like health,armor etc how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
September 2, 201312 yr Author Ok so I found the type method, and I registered the variable as ElementType health = e.type.HEALTH;. Now, I'm looking through the methods and I can't find anything that says to cancel it, except for the original e.setCancelled(boolean). But thats a boolean, and I'm not sure if you can find the variable to e... I'm so confused. I'm sorry if I'm a hassle.
September 2, 201312 yr except for the original e.setCancelled(boolean). But thats a boolean, so ? what do you expect to give to that method ? how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
September 2, 201312 yr Author That was just an example. I have the variable set, but I can't find out how to cancel it.
September 2, 201312 yr event.setCancelled(true); ... how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
September 2, 201312 yr Author OH I get it now. You would set the event type to RenderGameOverlayEvent to .Health and the end, and then do event.setCancelled(true);. Sorry for the trouble, thanks.
September 2, 201312 yr no dont set it to health, it will eventually show up as health how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
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.