PocketMine-MP
5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
Loading...
Searching...
No Matches
SkinAnimation.php
1
<?php
2
3
/*
4
* This file is part of BedrockProtocol.
5
* Copyright (C) 2014-2022 PocketMine Team <https://github.com/pmmp/BedrockProtocol>
6
*
7
* BedrockProtocol is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU Lesser General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
*/
12
13
declare(strict_types=1);
14
15
namespace
pocketmine\network\mcpe\protocol\types\skin;
16
17
class
SkinAnimation
{
18
19
public
const
TYPE_HEAD = 1;
20
public
const
TYPE_BODY_32 = 2;
21
public
const
TYPE_BODY_64 = 3;
22
23
public
const
EXPRESSION_LINEAR = 0;
//???
24
public
const
EXPRESSION_BLINKING = 1;
25
26
public
function
__construct(
27
private
SkinImage
$image,
28
private
int
$type,
29
private
float
$frames,
30
private
int
$expressionType
31
){}
32
36
public
function
getImage
() :
SkinImage
{
37
return $this->image;
38
}
39
43
public
function
getType
() : int{
44
return $this->type;
45
}
46
50
public
function
getFrames
() : float{
51
return $this->frames;
52
}
53
54
public
function
getExpressionType() : int{ return $this->expressionType; }
55
}
pocketmine\network\mcpe\protocol\types\skin\SkinAnimation
Definition
SkinAnimation.php:17
pocketmine\network\mcpe\protocol\types\skin\SkinAnimation\getType
getType()
Definition
SkinAnimation.php:43
pocketmine\network\mcpe\protocol\types\skin\SkinAnimation\getImage
getImage()
Definition
SkinAnimation.php:36
pocketmine\network\mcpe\protocol\types\skin\SkinAnimation\getFrames
getFrames()
Definition
SkinAnimation.php:50
pocketmine\network\mcpe\protocol\types\skin\SkinImage
Definition
SkinImage.php:19
vendor
pocketmine
bedrock-protocol
src
types
skin
SkinAnimation.php
Generated by
1.12.0