#how to add an image to the player's screen?

15 messages · Page 1 of 1 (latest)

storm hollow
storm hollow
storm hollow
#

I'm assuming you are getting the null texture?

#
  1. You don't need to worry about shaders when rendering a texture. All you need is the DrawContext#drawTexture call
#
  1. 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 tiny_potato

#

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)

grave pelican
#

But anyways you should be naming the class in pascal case

#

Instead of doing all lowercase and underscores
That's for something else