mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 17:59:41 +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{
|
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 */
|
/** @var SerializedImage */
|
||||||
private $image;
|
private $image;
|
||||||
@ -40,14 +42,29 @@ class SkinAnimation{
|
|||||||
$this->frames = $frames;
|
$this->frames = $frames;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Images of the animation.
|
||||||
|
*
|
||||||
|
* @return SerializedImage
|
||||||
|
*/
|
||||||
public function getImage() : SerializedImage{
|
public function getImage() : SerializedImage{
|
||||||
return $this->image;
|
return $this->image;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The type of animation you are applying.
|
||||||
|
*
|
||||||
|
* @return int
|
||||||
|
*/
|
||||||
public function getType() : int{
|
public function getType() : int{
|
||||||
return $this->type;
|
return $this->type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The total amount of frames in an animation.
|
||||||
|
*
|
||||||
|
* @return float
|
||||||
|
*/
|
||||||
public function getFrames() : float{
|
public function getFrames() : float{
|
||||||
return $this->frames;
|
return $this->frames;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user