PocketMine
LevelEventPacket Class Reference
Inheritance diagram for LevelEventPacket:
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::LEVEL_EVENT_PACKET
 
const EVENT_SOUND_CLICK = 1000
 
const EVENT_SOUND_CLICK_FAIL = 1001
 
const EVENT_SOUND_SHOOT = 1002
 
const EVENT_SOUND_DOOR = 1003
 
const EVENT_SOUND_FIZZ = 1004
 
const EVENT_SOUND_GHAST = 1007
 
const EVENT_SOUND_GHAST_SHOOT = 1008
 
const EVENT_SOUND_BLAZE_SHOOT = 1009
 
const EVENT_SOUND_DOOR_BUMP = 1010
 
const EVENT_SOUND_DOOR_CRASH = 1012
 
const EVENT_SOUND_BAT_FLY = 1015
 
const EVENT_SOUND_ZOMBIE_INFECT = 1016
 
const EVENT_SOUND_ZOMBIE_HEAL = 1017
 
const EVENT_SOUND_ENDERMAN_TELEPORT = 1018
 
const EVENT_SOUND_ANVIL_BREAK = 1020
 
const EVENT_SOUND_ANVIL_USE = 1021
 
const EVENT_SOUND_ANVIL_FALL = 1022
 
const EVENT_PARTICLE_SHOOT = 2000
 
const EVENT_PARTICLE_DESTROY = 2001
 
const EVENT_PARTICLE_SPLASH = 2002
 
const EVENT_PARTICLE_EYE_DESPAWN = 2003
 
const EVENT_PARTICLE_SPAWN = 2004
 
const EVENT_START_RAIN = 3001
 
const EVENT_START_THUNDER = 3002
 
const EVENT_STOP_RAIN = 3003
 
const EVENT_STOP_THUNDER = 3004
 
const EVENT_SET_DATA = 4000
 
const EVENT_PLAYERS_SLEEPING = 9800
 
const EVENT_ADD_PARTICLE_MASK = 0x4000
 
 $evid
 
 $x
 
 $y
 
 $z
 
 $data
 
- 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: