Update SkinAnimation constants and docs

This commit is contained in:
Stephen 2019-11-10 21:41:00 -05:00
parent da67a085fc
commit 6b97281c58

View File

@ -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;
}