PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
Loading...
Searching...
No Matches
PersonaSkinPiece.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
17final class PersonaSkinPiece{
18
19 public const PIECE_TYPE_PERSONA_BODY = "persona_body";
20 public const PIECE_TYPE_PERSONA_BOTTOM = "persona_bottom";
21 public const PIECE_TYPE_PERSONA_EYES = "persona_eyes";
22 public const PIECE_TYPE_PERSONA_FACIAL_HAIR = "persona_facial_hair";
23 public const PIECE_TYPE_PERSONA_FEET = "persona_feet";
24 public const PIECE_TYPE_PERSONA_HAIR = "persona_hair";
25 public const PIECE_TYPE_PERSONA_MOUTH = "persona_mouth";
26 public const PIECE_TYPE_PERSONA_SKELETON = "persona_skeleton";
27 public const PIECE_TYPE_PERSONA_SKIN = "persona_skin";
28 public const PIECE_TYPE_PERSONA_TOP = "persona_top";
29
30 public function __construct(
31 private string $pieceId,
32 private string $pieceType,
33 private string $packId,
34 private bool $isDefaultPiece,
35 private string $productId
36 ){}
37
38 public function getPieceId() : string{
39 return $this->pieceId;
40 }
41
42 public function getPieceType() : string{
43 return $this->pieceType;
44 }
45
46 public function getPackId() : string{
47 return $this->packId;
48 }
49
50 public function isDefaultPiece() : bool{
51 return $this->isDefaultPiece;
52 }
53
54 public function getProductId() : string{
55 return $this->productId;
56 }
57}