I'd like to render some text to the clients screen, but all the tutorials out there only talk about blocks or items or gui when you right click a block.
All I want to know how to do is render some text on the screen.
I'm fairly new to Java, but I do have programming experience.
Since I have no idea what proxies are, I used the proxy tutorial (http://www.minecraft...et/wiki/Proxies) to setup all the common/client/whatever proxies.
It doesn't do anything and I have no idea what's going on.
I'd be grateful if you could look at what I have and help me through understanding this.
I found this, and i used it, but the text never rendered. So instead i put the register in the main mod class instead of the proxy. Now it renders, but it renders in the menu and anywhere
It flickers because you use a tick handler, which fires exactly 20 times per second. You want a render handler which fires every time a new frame is rendered. My mod's code is open source and I do lots of screen rendering (check sig) if you want examples of how to do this.
edit: just noticed this thread was necro'd from Jan 2. Good job GameGunner5.
It flickers because you use a tick handler, which fires exactly 20 times per second. You want a render handler which fires every time a new frame is rendered. My mod's code is open source and I do lots of screen rendering (check sig) if you want examples of how to do this.
edit: just noticed this thread was necro'd from Jan 2. Good job GameGunner5.
Hey how about if i want to make the screen render as all black or white?
i don't Understand that says : "The import cpw.mods.fml.common.ITickHandler cannot be resolved"... I have sooo difficulties to make that temperature bar !
Are you using 1.7? If so, the reason why you're getting that error is tick handling was moved to the event system. That interface has been removed because it has no use anymore.
All I want to know how to do is render some text on the screen.
I'm fairly new to Java, but I do have programming experience.
Here is a simple one that renders text.
Note that I render text after the tick because you want it on top of everything, else it might not show.
In your ClientProxy, register it
It doesn't do anything and I have no idea what's going on.
I'd be grateful if you could look at what I have and help me through understanding this.
http://puu.sh/27IiP
the text is flashing on the screen, any ideas?
Want real chalenge and cool mods? My mods:
Amazing Minecraft Mods
†GnR† Slash - Can one man truly make a difference?
Check out my Mods! TGame's Death Sticks || TGame's Currency(W.I.P)
edit: just noticed this thread was necro'd from Jan 2. Good job GameGunner5.
Hey how about if i want to make the screen render as all black or white?
Use GL11 to render a quad that fills the entire screen and set the color to black/white.
The render events were implemented in 1.6 (possibly before), I know for sure because I've used them in 1.6.
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
My Github page.
The entire Minecraft shader development community now has its own Discord server! Feel free to join and chat with all the developers!