GenisysPro  for Minecraft PE/Windows 10 v1.1.x
Feature-rich server software for Minecraft PE and Windows 10 Edition
CraftingEventPacket 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::CRAFTING_EVENT_PACKET
 
 $windowId
 
 $type
 
 $id
 
 $input = []
 
 $output = []
 
- 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->input = [];
42  $this->output = [];
43 
44  return parent::clean();
45  }

◆ decode()

decode ( )
50  {
51  $this->windowId = $this->getByte();
52  $this->type = $this->getVarInt();
53  $this->id = $this->getUUID();
54 
55  $size = $this->getUnsignedVarInt();
56  for($i = 0; $i < $size and $i < 128; ++$i){
57  $this->input[] = $this->getSlot();
58  }
59 
60  $size = $this->getUnsignedVarInt();
61  for($i = 0; $i < $size and $i < 128; ++$i){
62  $this->output[] = $this->getSlot();
63  }
64  }

◆ encode()

encode ( )
69  {
70 
71  }

◆ getName()

getName ( )
Returns
PacketName|string
76  {
77  return "CraftingEventPacket";
78  }

Field Documentation

◆ $id

$id

◆ $input

$input = []

◆ $output

$output = []

◆ $type

$type

◆ $windowId

$windowId

◆ NETWORK_ID


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