PocketMine-MP 5.42.1 git-d77520d210fcb967a02bc11817ad625393c8ebc6
Loading...
Searching...
No Matches
pocketmine\network\mcpe\protocol\types\PacketShapeData Class Reference
+ Collaboration diagram for pocketmine\network\mcpe\protocol\types\PacketShapeData:

Public Member Functions

 __construct (private int $networkId, private ?ScriptDebugShapeType $type, private ?Vector3 $location, private ?float $scale, private ?Vector3 $rotation, private ?float $totalTimeLeft, private ?Color $color, private ?string $text, private ?Vector3 $boxBound, private ?Vector3 $lineEndLocation, private ?float $arrowHeadLength, private ?float $arrowHeadRadius, private ?int $segments, private ?int $dimensionId, private ?int $attachedToEntityId,)
 
 getArrowHeadLength ()
 
 getArrowHeadRadius ()
 
 getBoxBound ()
 
 getColor ()
 
 getDimensionId ()
 
 getLineEndLocation ()
 
 getLocation ()
 
 getNetworkId ()
 
 getRotation ()
 
 getScale ()
 
 getSegments ()
 
 getText ()
 
 getTotalTimeLeft ()
 
 getType ()
 
 write (ByteBufferWriter $out)
 

Static Public Member Functions

static arrow (int $networkId, Vector3 $location, Vector3 $lineEndLocation, ?float $scale=null, ?Color $color=null, ?float $arrowHeadLength=null, ?float $arrowHeadRadius=null, ?int $segments=null, ?int $dimensionId=null, ?int $attachedToEntityId=null)
 
static box (int $networkId, Vector3 $location, Vector3 $boxBound, ?float $scale=null, ?Color $color=null, ?int $dimensionId=null, ?int $attachedToEntityId=null)
 
static circle (int $networkId, Vector3 $location, ?float $scale=null, ?Color $color=null, ?int $segments=null, ?int $dimensionId=null, ?int $attachedToEntityId=null)
 
static line (int $networkId, Vector3 $location, Vector3 $lineEndLocation, ?Color $color=null, ?int $dimensionId=null, ?int $attachedToEntityId=null)
 
static read (ByteBufferReader $in)
 
static remove (int $networkId, ?int $dimensionId=null)
 
static sphere (int $networkId, Vector3 $location, ?float $scale=null, ?Color $color=null, ?int $segments=null, ?int $dimensionId=null, ?int $attachedToEntityId=null)
 
static text (int $networkId, Vector3 $location, string $text, ?Color $color=null, ?int $dimensionId=null, ?int $attachedToEntityId=null)
 

Detailed Description

See also
DebugDrawerPacket

Definition at line 31 of file PacketShapeData.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\mcpe\protocol\types\PacketShapeData::__construct ( private int $networkId,
private ?ScriptDebugShapeType $type,
private ?Vector3 $location,
private ?float $scale,
private ?Vector3 $rotation,
private ?float $totalTimeLeft,
private ?Color $color,
private ?string $text,
private ?Vector3 $boxBound,
private ?Vector3 $lineEndLocation,
private ?float $arrowHeadLength,
private ?float $arrowHeadRadius,
private ?int $segments,
private ?int $dimensionId,
private ?int $attachedToEntityId )

Definition at line 33 of file PacketShapeData.php.

Member Function Documentation

◆ arrow()

static pocketmine\network\mcpe\protocol\types\PacketShapeData::arrow ( int $networkId,
Vector3 $location,
Vector3 $lineEndLocation,
?float $scale = null,
?Color $color = null,
?float $arrowHeadLength = null,
?float $arrowHeadRadius = null,
?int $segments = null,
?int $dimensionId = null,
?int $attachedToEntityId = null )
static

Definition at line 155 of file PacketShapeData.php.

◆ box()

static pocketmine\network\mcpe\protocol\types\PacketShapeData::box ( int $networkId,
Vector3 $location,
Vector3 $boxBound,
?float $scale = null,
?Color $color = null,
?int $dimensionId = null,
?int $attachedToEntityId = null )
static

Definition at line 75 of file PacketShapeData.php.

◆ circle()

static pocketmine\network\mcpe\protocol\types\PacketShapeData::circle ( int $networkId,
Vector3 $location,
?float $scale = null,
?Color $color = null,
?int $segments = null,
?int $dimensionId = null,
?int $attachedToEntityId = null )
static

Definition at line 115 of file PacketShapeData.php.

◆ getArrowHeadLength()

pocketmine\network\mcpe\protocol\types\PacketShapeData::getArrowHeadLength ( )

Definition at line 197 of file PacketShapeData.php.

◆ getArrowHeadRadius()

pocketmine\network\mcpe\protocol\types\PacketShapeData::getArrowHeadRadius ( )

Definition at line 199 of file PacketShapeData.php.

◆ getBoxBound()

pocketmine\network\mcpe\protocol\types\PacketShapeData::getBoxBound ( )

Definition at line 193 of file PacketShapeData.php.

◆ getColor()

pocketmine\network\mcpe\protocol\types\PacketShapeData::getColor ( )

Definition at line 187 of file PacketShapeData.php.

◆ getDimensionId()

pocketmine\network\mcpe\protocol\types\PacketShapeData::getDimensionId ( )

Definition at line 189 of file PacketShapeData.php.

◆ getLineEndLocation()

pocketmine\network\mcpe\protocol\types\PacketShapeData::getLineEndLocation ( )

Definition at line 195 of file PacketShapeData.php.

◆ getLocation()

pocketmine\network\mcpe\protocol\types\PacketShapeData::getLocation ( )

Definition at line 179 of file PacketShapeData.php.

◆ getNetworkId()

pocketmine\network\mcpe\protocol\types\PacketShapeData::getNetworkId ( )

Definition at line 175 of file PacketShapeData.php.

◆ getRotation()

pocketmine\network\mcpe\protocol\types\PacketShapeData::getRotation ( )

Definition at line 183 of file PacketShapeData.php.

◆ getScale()

pocketmine\network\mcpe\protocol\types\PacketShapeData::getScale ( )

Definition at line 181 of file PacketShapeData.php.

◆ getSegments()

pocketmine\network\mcpe\protocol\types\PacketShapeData::getSegments ( )

Definition at line 201 of file PacketShapeData.php.

◆ getText()

pocketmine\network\mcpe\protocol\types\PacketShapeData::getText ( )

Definition at line 191 of file PacketShapeData.php.

◆ getTotalTimeLeft()

pocketmine\network\mcpe\protocol\types\PacketShapeData::getTotalTimeLeft ( )

Definition at line 185 of file PacketShapeData.php.

◆ getType()

pocketmine\network\mcpe\protocol\types\PacketShapeData::getType ( )

Definition at line 177 of file PacketShapeData.php.

◆ line()

static pocketmine\network\mcpe\protocol\types\PacketShapeData::line ( int $networkId,
Vector3 $location,
Vector3 $lineEndLocation,
?Color $color = null,
?int $dimensionId = null,
?int $attachedToEntityId = null )
static

Definition at line 55 of file PacketShapeData.php.

◆ read()

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

Definition at line 203 of file PacketShapeData.php.

◆ remove()

static pocketmine\network\mcpe\protocol\types\PacketShapeData::remove ( int $networkId,
?int $dimensionId = null )
static

Definition at line 51 of file PacketShapeData.php.

◆ sphere()

static pocketmine\network\mcpe\protocol\types\PacketShapeData::sphere ( int $networkId,
Vector3 $location,
?float $scale = null,
?Color $color = null,
?int $segments = null,
?int $dimensionId = null,
?int $attachedToEntityId = null )
static

Definition at line 95 of file PacketShapeData.php.

◆ text()

static pocketmine\network\mcpe\protocol\types\PacketShapeData::text ( int $networkId,
Vector3 $location,
string $text,
?Color $color = null,
?int $dimensionId = null,
?int $attachedToEntityId = null )
static

Definition at line 135 of file PacketShapeData.php.

◆ write()

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

Definition at line 272 of file PacketShapeData.php.


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