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

Public Member Functions

 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::CONTAINER_SET_SLOT_PACKET
 
 $windowid
 
 $slot
 
 $item
 
 $hotbarSlot
 
 $unknown
 
- Data Fields inherited from DataPacket
const NETWORK_ID = 0
 
 $isEncoded = false
 
- Data Fields inherited from BinaryStream
 $offset
 
 $buffer
 

Member Function Documentation

◆ decode()

decode ( )
42  {
43  $this->windowid = $this->getByte();
44  $this->slot = $this->getVarInt();
45  $this->hotbarSlot = $this->getVarInt();
46  $this->item = $this->getSlot();
47  $this->unknown = $this->getByte();
48  }

◆ encode()

encode ( )
53  {
54  $this->reset();
55  $this->putByte($this->windowid);
56  $this->putVarInt($this->slot);
57  $this->putVarInt($this->hotbarSlot);
58  $this->putSlot($this->item);
59  $this->putByte($this->unknown);
60  }

◆ getName()

getName ( )
Returns
PacketName|string
65  {
66  return "ContainerSetSlotPacket";
67  }

Field Documentation

◆ $hotbarSlot

$hotbarSlot

◆ $item

$item

◆ $slot

$slot

◆ $unknown

$unknown

◆ $windowid

$windowid

◆ NETWORK_ID


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