PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
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
13declare(strict_types=1);
14
15namespace pocketmine\network\mcpe\protocol\types\skin;
16
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}