From 2c20692f33cadc75edf279e2f0bed032d083b56d Mon Sep 17 00:00:00 2001 From: Alexander Weber Date: Sun, 15 Apr 2018 01:09:38 +0200 Subject: Added support for 1.8er Skins --- API.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'API.md') diff --git a/API.md b/API.md index 5d23186..11b8de2 100644 --- a/API.md +++ b/API.md @@ -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 -- cgit v1.2.3