DisguiseAPI icon indicating copy to clipboard operation
DisguiseAPI copied to clipboard

Ability to change skin of player to different entities

Open itspinger opened this issue 3 years ago • 0 comments

Problem solved by the feature

This feature adds the ability to change the properties of players like done with skins, but by using EntityTypes. This means a player may be able to change their skin, to match the Skeleton property and such.

Feature description

The feature should be implemented within the PacketProvider class, by adding a new signature to the #updateProperties method or such, where the only two parameters would be (Player - the player which we are changing the skin, EntityType - the type of entity to extract the texture from)

This makes it flexible to work with and will have to be done per version. Note that I haven't investigated whether it is that easy to change the texture of a player to another entity. If it indeed is not easy, it may be more convenient to create a new class such as PacketProvider, and add it to all version modules.

itspinger avatar Aug 12 '22 20:08 itspinger