PocketMine
EntityEventPacket Class Reference
Inheritance diagram for EntityEventPacket:
DataPacket BinaryStream

Public Member Functions

 decode ()
 
 encode ()
 
- Public Member Functions inherited from DataPacket
 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 = Info::ENTITY_EVENT_PACKET
 
const HURT_ANIMATION = 2
 
const DEATH_ANIMATION = 3
 
const TAME_FAIL = 6
 
const TAME_SUCCESS = 7
 
const SHAKE_WET = 8
 
const USE_ITEM = 9
 
const EAT_GRASS_ANIMATION = 10
 
const FISH_HOOK_BUBBLE = 11
 
const FISH_HOOK_POSITION = 12
 
const FISH_HOOK_HOOK = 13
 
const FISH_HOOK_TEASE = 14
 
const SQUID_INK_CLOUD = 15
 
const AMBIENT_SOUND = 16
 
const RESPAWN = 17
 
 $eid
 
 $event
 
- Data Fields inherited from DataPacket
const NETWORK_ID = 0
 
 $isEncoded = false
 
- Data Fields inherited from BinaryStream
 $offset
 
 $buffer
 

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