Skip to content

how to add a new entity display like the player when you open the inventory #2644

Discussion options

You must be logged in to vote

The code you are looking for is in InventoryScreen.drawEntity()
Not sure how useful that is for what you are doing?
It requires a player and will use their skin along with drawing other stuff like the worn armor.

You probably want to look at PlayerEntityRenderer and its parent class(es).
The models are created programmatically and the vanilla game has 2 instances of this class
default and slim which are steve and alex
see the EntityRenderers.PLAYER_RENDERER_FACTORIES

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by DarkiDoki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants