diff options
author | bell07 <web.alexander@web.de> | 2018-05-10 15:14:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-10 15:14:51 +0200 |
commit | b12aefbe4fe768106ee1d1dfac8567dbbcd8c273 (patch) | |
tree | d5e63e14b9e2675129267ee69abc66c67cd8a13d /API.md | |
parent | 45edbf808ac0a74e4da6b468c2bf87b8b49e02a0 (diff) | |
parent | 2c20692f33cadc75edf279e2f0bed032d083b56d (diff) |
Merge pull request #11 from bell07/V_1_8_skins
Added support for 1.8er Skins
Ok, just merge it without review
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 |