JitseB / NPCLib

(Minecraft) NPCLib – Basic non-player character library.
MIT License
197 stars 49 forks source link

An opinion on skin #182

Closed ByOuHuang closed 1 year ago

ByOuHuang commented 1 year ago

I would like to provide an opinion on adding a method to set the NPC skin as the player's own skin

JitseB commented 1 year ago

Since NPCLib only uses packets to generate the NPCs, you may create a new NPC object per player and set the skin per NPC so that they match with the player's skin.

The skindata of the particular player can be retrieved from the GameProfile object.