PocketMine
DataPacket Class Reference
Inheritance diagram for DataPacket:
BinaryStream AddEntityPacket AddItemEntityPacket AddPaintingPacket AddPlayerPacket AdventureSettingsPacket AnimatePacket BatchPacket BlockEntityDataPacket BlockEventPacket ContainerClosePacket ContainerOpenPacket ContainerSetContentPacket ContainerSetDataPacket ContainerSetSlotPacket CraftingDataPacket CraftingEventPacket DisconnectPacket DropItemPacket EntityEventPacket ExplodePacket FullChunkDataPacket HurtArmorPacket InteractPacket LevelEventPacket LoginPacket MobArmorEquipmentPacket MobEffectPacket MobEquipmentPacket MoveEntityPacket MovePlayerPacket PlayerActionPacket PlayerListPacket PlayStatusPacket RemoveBlockPacket RemoveEntityPacket RemovePlayerPacket RespawnPacket SetDifficultyPacket SetEntityDataPacket SetEntityLinkPacket SetEntityMotionPacket SetHealthPacket SetPlayerGameTypePacket SetSpawnPositionPacket SetTimePacket StartGamePacket TakeItemEntityPacket TextPacket UpdateAttributesPacket UpdateBlockPacket UseItemPacket

Public Member Functions

 pid ()
 
 encode ()
 
 decode ()
 
 reset ()
 
 setChannel ($channel)
 
 getChannel ()
 
 clean ()
 
 __debugInfo ()
 
- Public Member Functions inherited from BinaryStream
 __construct ($buffer="", $offset=0)
 
 reset ()
 
 setBuffer ($buffer=null, $offset=0)
 
 getOffset ()
 
 getBuffer ()
 
 get ($len)
 
 put ($str)
 
 getLong ()
 
 putLong ($v)
 
 getInt ()
 
 putInt ($v)
 
 getLLong ()
 
 putLLong ($v)
 
 getLInt ()
 
 putLInt ($v)
 
 getSignedShort ()
 
 putShort ($v)
 
 getShort ()
 
 putSignedShort ($v)
 
 getFloat ()
 
 putFloat ($v)
 
 getLShort ($signed=true)
 
 putLShort ($v)
 
 getLFloat ()
 
 putLFloat ($v)
 
 getTriad ()
 
 putTriad ($v)
 
 getLTriad ()
 
 putLTriad ($v)
 
 getByte ()
 
 putByte ($v)
 
 getDataArray ($len=10)
 
 putDataArray (array $data=[])
 
 getUUID ()
 
 putUUID (UUID $uuid)
 
 getSlot ()
 
 putSlot (Item $item)
 
 getString ()
 
 putString ($v)
 
 feof ()
 

Data Fields

const NETWORK_ID = 0
 
 $isEncoded = false
 
- Data Fields inherited from BinaryStream
 $offset
 
 $buffer
 

Member Function Documentation

setChannel (   $channel)
Deprecated:
This adds extra overhead on the network, so its usage is now discouraged. It was a test for the viability of this.

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