PocketMine-MP 5.17.1 git-df4ada81e5d74a14046f27cf44a37dcee69d657e
pocketmine\network\mcpe\protocol\types\camera\CameraPreset Class Reference
+ Collaboration diagram for pocketmine\network\mcpe\protocol\types\camera\CameraPreset:

Public Member Functions

 __construct (private string $name, private string $parent, private ?float $xPosition, private ?float $yPosition, private ?float $zPosition, private ?float $pitch, private ?float $yaw, private ?int $audioListenerType, private ?bool $playerEffects)
 
 getAudioListenerType ()
 
 getName ()
 
 getParent ()
 
 getPitch ()
 
 getPlayerEffects ()
 
 getXPosition ()
 
 getYaw ()
 
 getYPosition ()
 
 getZPosition ()
 
 write (PacketSerializer $out)
 

Static Public Member Functions

static read (PacketSerializer $in)
 

Public Attributes

const AUDIO_LISTENER_TYPE_CAMERA = 0
 
const AUDIO_LISTENER_TYPE_PLAYER = 1
 

Detailed Description

Definition at line 19 of file CameraPreset.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\mcpe\protocol\types\camera\CameraPreset::__construct ( private string  $name,
private string  $parent,
private ?float  $xPosition,
private ?float  $yPosition,
private ?float  $zPosition,
private ?float  $pitch,
private ?float  $yaw,
private ?int  $audioListenerType,
private ?bool  $playerEffects 
)

Definition at line 23 of file CameraPreset.php.

Member Function Documentation

◆ getAudioListenerType()

pocketmine\network\mcpe\protocol\types\camera\CameraPreset::getAudioListenerType ( )

Definition at line 49 of file CameraPreset.php.

◆ getName()

pocketmine\network\mcpe\protocol\types\camera\CameraPreset::getName ( )

Definition at line 35 of file CameraPreset.php.

◆ getParent()

pocketmine\network\mcpe\protocol\types\camera\CameraPreset::getParent ( )

Definition at line 37 of file CameraPreset.php.

◆ getPitch()

pocketmine\network\mcpe\protocol\types\camera\CameraPreset::getPitch ( )

Definition at line 45 of file CameraPreset.php.

◆ getPlayerEffects()

pocketmine\network\mcpe\protocol\types\camera\CameraPreset::getPlayerEffects ( )

Definition at line 51 of file CameraPreset.php.

◆ getXPosition()

pocketmine\network\mcpe\protocol\types\camera\CameraPreset::getXPosition ( )

Definition at line 39 of file CameraPreset.php.

◆ getYaw()

pocketmine\network\mcpe\protocol\types\camera\CameraPreset::getYaw ( )

Definition at line 47 of file CameraPreset.php.

◆ getYPosition()

pocketmine\network\mcpe\protocol\types\camera\CameraPreset::getYPosition ( )

Definition at line 41 of file CameraPreset.php.

◆ getZPosition()

pocketmine\network\mcpe\protocol\types\camera\CameraPreset::getZPosition ( )

Definition at line 43 of file CameraPreset.php.

◆ read()

static pocketmine\network\mcpe\protocol\types\camera\CameraPreset::read ( PacketSerializer  $in)
static

Definition at line 53 of file CameraPreset.php.

◆ write()

pocketmine\network\mcpe\protocol\types\camera\CameraPreset::write ( PacketSerializer  $out)

Definition at line 77 of file CameraPreset.php.

Member Data Documentation

◆ AUDIO_LISTENER_TYPE_CAMERA

const pocketmine\network\mcpe\protocol\types\camera\CameraPreset::AUDIO_LISTENER_TYPE_CAMERA = 0

Definition at line 20 of file CameraPreset.php.

◆ AUDIO_LISTENER_TYPE_PLAYER

const pocketmine\network\mcpe\protocol\types\camera\CameraPreset::AUDIO_LISTENER_TYPE_PLAYER = 1

Definition at line 21 of file CameraPreset.php.


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