PocketMine-MP 5.42.1 git-d77520d210fcb967a02bc11817ad625393c8ebc6
Loading...
Searching...
No Matches
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 ?float $rotationSpeed, private ?bool $snapToTarget, private ?Vector2 $horizontalRotationLimit, private ?Vector2 $verticalRotationLimit, private ?bool $continueTargeting, private ?float $blockListeningRadius, private ?Vector2 $viewOffset, private ?Vector3 $entityOffset, private ?float $radius, private ?float $yawLimitMin, private ?float $yawLimitMax, private ?int $audioListenerType, private ?bool $playerEffects, private ?CameraPresetAimAssist $aimAssist, private ?ControlScheme $controlScheme,)
 
 getAimAssist ()
 
 getAudioListenerType ()
 
 getBlockListeningRadius ()
 
 getContinueTargeting ()
 
 getControlScheme ()
 
 getEntityOffset ()
 
 getHorizontalRotationLimit ()
 
 getName ()
 
 getParent ()
 
 getPitch ()
 
 getPlayerEffects ()
 
 getRadius ()
 
 getRotationSpeed ()
 
 getSnapToTarget ()
 
 getVerticalRotationLimit ()
 
 getViewOffset ()
 
 getXPosition ()
 
 getYaw ()
 
 getYawLimitMax ()
 
 getYawLimitMin ()
 
 getYPosition ()
 
 getZPosition ()
 
 write (ByteBufferWriter $out)
 

Static Public Member Functions

static read (ByteBufferReader $in)
 

Public Attributes

const AUDIO_LISTENER_TYPE_CAMERA = 0
 
const AUDIO_LISTENER_TYPE_PLAYER = 1
 

Detailed Description

Definition at line 26 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 ?float $rotationSpeed,
private ?bool $snapToTarget,
private ?Vector2 $horizontalRotationLimit,
private ?Vector2 $verticalRotationLimit,
private ?bool $continueTargeting,
private ?float $blockListeningRadius,
private ?Vector2 $viewOffset,
private ?Vector3 $entityOffset,
private ?float $radius,
private ?float $yawLimitMin,
private ?float $yawLimitMax,
private ?int $audioListenerType,
private ?bool $playerEffects,
private ?CameraPresetAimAssist $aimAssist,
private ?ControlScheme $controlScheme )

Definition at line 30 of file CameraPreset.php.

Member Function Documentation

◆ getAimAssist()

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

Definition at line 95 of file CameraPreset.php.

◆ getAudioListenerType()

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

Definition at line 91 of file CameraPreset.php.

◆ getBlockListeningRadius()

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

Definition at line 79 of file CameraPreset.php.

◆ getContinueTargeting()

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

Definition at line 77 of file CameraPreset.php.

◆ getControlScheme()

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

Definition at line 97 of file CameraPreset.php.

◆ getEntityOffset()

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

Definition at line 83 of file CameraPreset.php.

◆ getHorizontalRotationLimit()

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

Definition at line 73 of file CameraPreset.php.

◆ getName()

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

Definition at line 55 of file CameraPreset.php.

◆ getParent()

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

Definition at line 57 of file CameraPreset.php.

◆ getPitch()

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

Definition at line 65 of file CameraPreset.php.

◆ getPlayerEffects()

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

Definition at line 93 of file CameraPreset.php.

◆ getRadius()

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

Definition at line 85 of file CameraPreset.php.

◆ getRotationSpeed()

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

Definition at line 69 of file CameraPreset.php.

◆ getSnapToTarget()

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

Definition at line 71 of file CameraPreset.php.

◆ getVerticalRotationLimit()

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

Definition at line 75 of file CameraPreset.php.

◆ getViewOffset()

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

Definition at line 81 of file CameraPreset.php.

◆ getXPosition()

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

Definition at line 59 of file CameraPreset.php.

◆ getYaw()

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

Definition at line 67 of file CameraPreset.php.

◆ getYawLimitMax()

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

Definition at line 89 of file CameraPreset.php.

◆ getYawLimitMin()

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

Definition at line 87 of file CameraPreset.php.

◆ getYPosition()

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

Definition at line 61 of file CameraPreset.php.

◆ getZPosition()

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

Definition at line 63 of file CameraPreset.php.

◆ read()

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

Definition at line 99 of file CameraPreset.php.

◆ write()

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

Definition at line 149 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 27 of file CameraPreset.php.

◆ AUDIO_LISTENER_TYPE_PLAYER

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

Definition at line 28 of file CameraPreset.php.


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