Hey guys, after much frustration and fruitless searching I come in search of the wisdom of those who have come before me.
I am attempting to replicate the functionality of the vanilla compass. My compass would point to the player's last death. I already have the player spawn with the "Grave Compass" item, nbt data included for the BlockPos. I'm running into a wall when it comes to updating the texture in real time. I attempted to look at the rendering code for the vanilla compass only to realize that it is hard coded. My latest effort was to use ModelLoader.setCustomMeshDefinition however that would limit me to only the information provided in the item stack. What classes should I be looking at to enable me to update the item's texture in a similar manner to its vanilla counterpart.
Thanks.