#How to draw items on different texture with DrawContext in 1.21.6+
1 messages · Page 1 of 1 (latest)
!!xyproblem
Please explain exactly what you want to accomplish
I want to construct a png which contains all item textures and i can get a slice of single item
Isn't that the definition of the atlas
I think so
Then just get the atlas
Do you need the block item textures?
block item?
Texture of a block when you have it in the inventory
You can do client.send() and screenshot in the lambda, there is probably a better way its kind of slow but its fine if you need the item textures in an image file
I don't understand, do you mean ScreenshotRecorder?
I'm sorry but idk how to do that correctly
First of all why do you need the textures
This sounds like another xyproblem to me
What are you going to do with the atlas
MinecraftClient.getInstance().send() takes a lambda and runs it a tick later so you just take a screenshot inside the lambda
Maybe. I'm providing an HTTP endpoint which receives an identifier(resourcelocation) of item and responds with its texture
So my old idea is to draw an atlas pic on resource reload
not working, but thanks
Can you show your code?
I'll create a small test only for this later
Do you want to store the items as images or generate the image on the fly?
here, store a readable pic for each item, or a big pic and items' corresponding position