mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 00:39:45 +00:00
Update SkinAnimation constants and docs
This commit is contained in:
parent
da67a085fc
commit
6b97281c58
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user