GenisysPro  for Minecraft PE/Windows 10 v1.1.x
Feature-rich server software for Minecraft PE and Windows 10 Edition
ExplodePacket Class Reference

Public Member Functions

 clean ()
 
 decode ()
 
 encode ()
 
 getName ()
 
- Public Member Functions inherited from DataPacket
 pid ()
 
 encode ()
 
 decode ()
 
 reset ()
 
 clean ()
 
 __debugInfo ()
 
 getEntityMetadata (bool $types=true)
 
 putEntityMetadata (array $metadata)
 
 getName ()
 
- Public Member Functions inherited from BinaryStream
 __construct ($buffer="", $offset=0)
 
 reset ()
 
 setBuffer ($buffer=null, $offset=0)
 
 getOffset ()
 
 getBuffer ()
 
 get ($len)
 
 put ($str)
 
 getBool ()
 
 putBool ($v)
 
 getLong ()
 
 putLong ($v)
 
 getInt ()
 
 putInt ($v)
 
 getLLong ()
 
 putLLong ($v)
 
 getLInt ()
 
 putLInt ($v)
 
 getSignedShort ()
 
 putShort ($v)
 
 getShort ()
 
 putSignedShort ($v)
 
 getFloat (int $accuracy=-1)
 
 putFloat ($v)
 
 getLShort ($signed=true)
 
 putLShort ($v)
 
 getLFloat (int $accuracy=-1)
 
 putLFloat ($v)
 
 getTriad ()
 
 putTriad ($v)
 
 getLTriad ()
 
 putLTriad ($v)
 
 getByte ()
 
 putByte ($v)
 
 getUUID ()
 
 putUUID (UUID $uuid)
 
 getSlot ()
 
 putSlot (Item $item)
 
 getString ()
 
 putString ($v)
 
 getUnsignedVarInt ()
 
 putUnsignedVarInt ($v)
 
 getVarInt ()
 
 putVarInt ($v)
 
 getEntityId ()
 
 putEntityId ($v)
 
 getBlockCoords (&$x, &$y, &$z)
 
 putBlockCoords ($x, $y, $z)
 
 getVector3f (&$x, &$y, &$z)
 
 putVector3f ($x, $y, $z)
 
 feof ()
 

Data Fields

const NETWORK_ID = ProtocolInfo::EXPLODE_PACKET
 
 $x
 
 $y
 
 $z
 
 $radius
 
 $records = []
 
- Data Fields inherited from DataPacket
const NETWORK_ID = 0
 
 $isEncoded = false
 
- Data Fields inherited from BinaryStream
 $offset
 
 $buffer
 

Member Function Documentation

◆ clean()

clean ( )
Returns
$this
40  {
41  $this->records = [];
42 
43  return parent::clean();
44  }

◆ decode()

decode ( )
49  {
50 
51  }

◆ encode()

encode ( )
56  {
57  $this->reset();
58  $this->putVector3f($this->x, $this->y, $this->z);
59  $this->putLFloat($this->radius);
60  $this->putUnsignedVarInt(count($this->records));
61  if(count($this->records) > 0){
62  foreach($this->records as $record){
63  $this->putBlockCoords($record->x, $record->y, $record->z);
64  }
65  }
66  }

◆ getName()

getName ( )
Returns
PacketName|string
71  {
72  return "ExplodePacket";
73  }

Field Documentation

◆ $radius

$radius

◆ $records

$records = []

◆ $x

$x

◆ $y

$y

◆ $z

$z

◆ NETWORK_ID

const NETWORK_ID = ProtocolInfo::EXPLODE_PACKET

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