mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Added encode and decode methods for more packets
This commit is contained in:
@ -41,7 +41,12 @@ class MobEffectPacket extends DataPacket{
|
||||
public $duration;
|
||||
|
||||
public function decode(){
|
||||
|
||||
$this->eid = $this->getEntityRuntimeId();
|
||||
$this->eventId = $this->getByte();
|
||||
$this->effectId = $this->getVarInt();
|
||||
$this->amplifier = $this->getVarInt();
|
||||
$this->particles = $this->getBool();
|
||||
$this->duration = $this->getVarInt();
|
||||
}
|
||||
|
||||
public function encode(){
|
||||
|
Reference in New Issue
Block a user