I want to be able to render an entity in a GUI (like in the survival inventory). I found the renderEntityInInventory() method, but I can't figure out how to create and render a new entity. For reference, I am trying to recreate the armor stand like in the new smithing table GUI.
This is what I have so far:
And before anyone tells me, I have checked InventoryScreen.class (it's where I found renderEntityInInventory()). InventoryScreen.class refers to an existing entity (the player), I am trying to instantiate and refer to a NEW entity. How can I do this or is there a better way to do it than what I think I should do? (I WOULD decompile 23w05a if mcp for snapshots was a thing.)