wdym by image? If you want to draw a sprite to the user's HUD, I suggest you binge the rendering section on the docs.fabricmc.net
https://docs.fabricmc.net/develop/rendering/basic-concepts
#how to add an image to the player's screen?
15 messages · Page 1 of 1 (latest)
It would still be good to read the entire section in the wiki, but you are looking for this page in particular: https://docs.fabricmc.net/develop/rendering/draw-context
I'm assuming you are getting the null texture?
- You don't need to worry about shaders when rendering a texture. All you need is the
DrawContext#drawTexturecall
- Your identifier needs to be the full path. Ex: "minecraft:textures/items/amethyst_shard.png"
I'm not currently at my station to be able to check the exact meaning of each, but the 1st and 3rd look like methods while 2nd and 4th aa classes
In your snippet above, you need a provide drawContext and then call the method drawTexture
I believe there are 2. If i'm not mistaken, one uses uv coords and the other doesn't
Also make sure you are registering the callback 
I believe the interface is HudRenderCallback or smth like that
There should be an EVENT field that you can call register() on and then provide your callback
Side note, make sure your class follows camel case (MDHud)
that's pascal case
But anyways you should be naming the class in pascal case
Instead of doing all lowercase and underscores
That's for something else