PocketMine-MP 5.21.3 git-fcef015f32c0b0709cfd4d6f1b3c32f484b25bde
Loading...
Searching...
No Matches
pocketmine\network\mcpe\protocol\types\skin\SkinData Class Reference
+ Collaboration diagram for pocketmine\network\mcpe\protocol\types\skin\SkinData:

Public Member Functions

 __construct (private string $skinId, private string $playFabId, private string $resourcePatch, private SkinImage $skinImage, private array $animations=[], SkinImage $capeImage=null, private string $geometryData="", private string $geometryDataEngineVersion=ProtocolInfo::MINECRAFT_VERSION_NETWORK, private string $animationData="", private string $capeId="", ?string $fullSkinId=null, private string $armSize=self::ARM_SIZE_WIDE, private string $skinColor="", private array $personaPieces=[], private array $pieceTintColors=[], private bool $isVerified=true, private bool $premium=false, private bool $persona=false, private bool $personaCapeOnClassic=false, private bool $isPrimaryUser=true, private bool $override=true)
 
 getAnimationData ()
 
 getAnimations ()
 
 getArmSize ()
 
 getCapeId ()
 
 getCapeImage ()
 
 getFullSkinId ()
 
 getGeometryData ()
 
 getGeometryDataEngineVersion ()
 
 getPersonaPieces ()
 
 getPieceTintColors ()
 
 getPlayFabId ()
 
 getResourcePatch ()
 
 getSkinColor ()
 
 getSkinId ()
 
 getSkinImage ()
 
 isOverride ()
 
 isPersona ()
 
 isPersonaCapeOnClassic ()
 
 isPremium ()
 
 isPrimaryUser ()
 
 isVerified ()
 
 setVerified (bool $verified)
 

Public Attributes

const ARM_SIZE_SLIM = "slim"
 
const ARM_SIZE_WIDE = "wide"
 

Detailed Description

Definition at line 20 of file SkinData.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\mcpe\protocol\types\skin\SkinData::__construct ( private string $skinId,
private string $playFabId,
private string $resourcePatch,
private SkinImage $skinImage,
private array $animations = [],
SkinImage $capeImage = null,
private string $geometryData = "",
private string $geometryDataEngineVersion = ProtocolInfo::MINECRAFT_VERSION_NETWORK,
private string $animationData = "",
private string $capeId = "",
?string $fullSkinId = null,
private string $armSize = self::ARM_SIZE_WIDE,
private string $skinColor = "",
private array $personaPieces = [],
private array $pieceTintColors = [],
private bool $isVerified = true,
private bool $premium = false,
private bool $persona = false,
private bool $personaCapeOnClassic = false,
private bool $isPrimaryUser = true,
private bool $override = true )
Parameters
SkinAnimation[]$animations
PersonaSkinPiece[]$personaPieces
PersonaPieceTintColor[]$pieceTintColors

Definition at line 33 of file SkinData.php.

Member Function Documentation

◆ getAnimationData()

pocketmine\network\mcpe\protocol\types\skin\SkinData::getAnimationData ( )

Definition at line 92 of file SkinData.php.

◆ getAnimations()

pocketmine\network\mcpe\protocol\types\skin\SkinData::getAnimations ( )
Returns
SkinAnimation[]

Definition at line 78 of file SkinData.php.

◆ getArmSize()

pocketmine\network\mcpe\protocol\types\skin\SkinData::getArmSize ( )

Definition at line 104 of file SkinData.php.

◆ getCapeId()

pocketmine\network\mcpe\protocol\types\skin\SkinData::getCapeId ( )

Definition at line 96 of file SkinData.php.

◆ getCapeImage()

pocketmine\network\mcpe\protocol\types\skin\SkinData::getCapeImage ( )

Definition at line 82 of file SkinData.php.

◆ getFullSkinId()

pocketmine\network\mcpe\protocol\types\skin\SkinData::getFullSkinId ( )

Definition at line 100 of file SkinData.php.

◆ getGeometryData()

pocketmine\network\mcpe\protocol\types\skin\SkinData::getGeometryData ( )

Definition at line 86 of file SkinData.php.

◆ getGeometryDataEngineVersion()

pocketmine\network\mcpe\protocol\types\skin\SkinData::getGeometryDataEngineVersion ( )

Definition at line 90 of file SkinData.php.

◆ getPersonaPieces()

pocketmine\network\mcpe\protocol\types\skin\SkinData::getPersonaPieces ( )
Returns
PersonaSkinPiece[]

Definition at line 115 of file SkinData.php.

◆ getPieceTintColors()

pocketmine\network\mcpe\protocol\types\skin\SkinData::getPieceTintColors ( )
Returns
PersonaPieceTintColor[]

Definition at line 122 of file SkinData.php.

◆ getPlayFabId()

pocketmine\network\mcpe\protocol\types\skin\SkinData::getPlayFabId ( )

Definition at line 65 of file SkinData.php.

◆ getResourcePatch()

pocketmine\network\mcpe\protocol\types\skin\SkinData::getResourcePatch ( )

Definition at line 67 of file SkinData.php.

◆ getSkinColor()

pocketmine\network\mcpe\protocol\types\skin\SkinData::getSkinColor ( )

Definition at line 108 of file SkinData.php.

◆ getSkinId()

pocketmine\network\mcpe\protocol\types\skin\SkinData::getSkinId ( )

Definition at line 61 of file SkinData.php.

◆ getSkinImage()

pocketmine\network\mcpe\protocol\types\skin\SkinData::getSkinImage ( )

Definition at line 71 of file SkinData.php.

◆ isOverride()

pocketmine\network\mcpe\protocol\types\skin\SkinData::isOverride ( )

Definition at line 140 of file SkinData.php.

◆ isPersona()

pocketmine\network\mcpe\protocol\types\skin\SkinData::isPersona ( )

Definition at line 126 of file SkinData.php.

◆ isPersonaCapeOnClassic()

pocketmine\network\mcpe\protocol\types\skin\SkinData::isPersonaCapeOnClassic ( )

Definition at line 134 of file SkinData.php.

◆ isPremium()

pocketmine\network\mcpe\protocol\types\skin\SkinData::isPremium ( )

Definition at line 130 of file SkinData.php.

◆ isPrimaryUser()

pocketmine\network\mcpe\protocol\types\skin\SkinData::isPrimaryUser ( )

Definition at line 138 of file SkinData.php.

◆ isVerified()

pocketmine\network\mcpe\protocol\types\skin\SkinData::isVerified ( )

Definition at line 142 of file SkinData.php.

◆ setVerified()

pocketmine\network\mcpe\protocol\types\skin\SkinData::setVerified ( bool $verified)

Definition at line 149 of file SkinData.php.

Member Data Documentation

◆ ARM_SIZE_SLIM

const pocketmine\network\mcpe\protocol\types\skin\SkinData::ARM_SIZE_SLIM = "slim"

Definition at line 22 of file SkinData.php.

◆ ARM_SIZE_WIDE

const pocketmine\network\mcpe\protocol\types\skin\SkinData::ARM_SIZE_WIDE = "wide"

Definition at line 23 of file SkinData.php.


The documentation for this class was generated from the following file: