diff options
author | Alexander Weber <web.alexander@web.de> | 2018-04-15 01:09:38 +0200 |
---|---|---|
committer | Alexander Weber <web.alexander@web.de> | 2018-04-16 16:17:42 +0200 |
commit | 2c20692f33cadc75edf279e2f0bed032d083b56d (patch) | |
tree | d5e63e14b9e2675129267ee69abc66c67cd8a13d /API.md | |
parent | 45edbf808ac0a74e4da6b468c2bf87b8b49e02a0 (diff) |
Added support for 1.8er Skins
Diffstat (limited to 'API.md')
-rw-r--r-- | API.md | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -16,6 +16,10 @@ skins.assign_player_skin(player, skin) skins.update_player_skin(player) ``` +## skins.get_skin_format(file) +Returns the skin format version ("1.0" or "1.8"). File is an open file handle to the texture file + + ## skins.get_skinlist(assignment, select_unassigned) Obsolete - use get_skinlist_for_player() or get_skinlist_with_meta() instead @@ -63,7 +67,11 @@ Get the skin preview Could be redefined for dynamic preview texture generation ## skin:set_skin(player) -Apply the skin to the player. Is called in skins.update_player_skin() +Apply the skin to the player and do some resets. +Is called if skin selection started, in skins.update_player_skin() for examlpe + +skin:apply_skin_to_player(player) +Apply the skin to the player. Is called in set_skin() and other places the skin needs to be updated ## skin:set_meta(key, value) Add a meta information to the skin object |