From 6b97281c58e4fdd44a66c26aadb582263497d48b Mon Sep 17 00:00:00 2001 From: Stephen Date: Sun, 10 Nov 2019 21:41:00 -0500 Subject: [PATCH] Update SkinAnimation constants and docs --- src/pocketmine/utils/SkinAnimation.php | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/pocketmine/utils/SkinAnimation.php b/src/pocketmine/utils/SkinAnimation.php index 10092059b..91b63a89c 100644 --- a/src/pocketmine/utils/SkinAnimation.php +++ b/src/pocketmine/utils/SkinAnimation.php @@ -25,7 +25,9 @@ namespace pocketmine\utils; class SkinAnimation{ - public const TYPE_HEAD = 1; //Might want a double check on this + public const TYPE_HEAD = 1; + public const TYPE_BODY_32 = 2; + public const TYPE_BODY_64 = 3; /** @var SerializedImage */ private $image; @@ -40,14 +42,29 @@ class SkinAnimation{ $this->frames = $frames; } + /** + * Images of the animation. + * + * @return SerializedImage + */ public function getImage() : SerializedImage{ return $this->image; } + /** + * The type of animation you are applying. + * + * @return int + */ public function getType() : int{ return $this->type; } + /** + * The total amount of frames in an animation. + * + * @return float + */ public function getFrames() : float{ return $this->frames; }