51        $result->actorRuntimeId = $actorRuntimeId;
 
   52        $result->eventId = $eventId;
 
   53        $result->effectId = $effectId;
 
   54        $result->amplifier = $amplifier;
 
   55        $result->particles = $particles;
 
   56        $result->duration = $duration;
 
   57        $result->tick = $tick;
 
 
   62        return self::create($actorRuntimeId, $replace ? self::EVENT_MODIFY : self::EVENT_ADD, $effectId, $amplifier, $particles, $duration, $tick);
 
   66        return self::create($actorRuntimeId, self::EVENT_REMOVE, $effectId, 0, 
false, 0, $tick);
 
   70        $this->actorRuntimeId = 
CommonTypes::getActorRuntimeId($in);
 
   71        $this->eventId = Byte::readUnsigned($in);
 
   72        $this->effectId = VarInt::readSignedInt($in);
 
   73        $this->amplifier = VarInt::readSignedInt($in);
 
   74        $this->particles = CommonTypes::getBool($in);
 
   75        $this->duration = VarInt::readSignedInt($in);
 
   76        $this->tick = VarInt::readUnsignedLong($in);
 
 
   80        CommonTypes::putActorRuntimeId($out, $this->actorRuntimeId);
 
   81        Byte::writeUnsigned($out, $this->eventId);
 
   82        VarInt::writeSignedInt($out, $this->effectId);
 
   83        VarInt::writeSignedInt($out, $this->amplifier);
 
   84        CommonTypes::putBool($out, $this->particles);
 
   85        VarInt::writeSignedInt($out, $this->duration);
 
   86        VarInt::writeUnsignedLong($out, $this->tick);