entityBaseTick() public method

public entityBaseTick ( $tickDiff = 1, $EnchantL )
Example #1
0
 public function entityBaseTick($tickDiff = 1)
 {
     $hasUpdate = parent::entityBaseTick($tickDiff);
     $entries = $this->attributeMap->needSend();
     if (count($entries) > 0) {
         $pk = new UpdateAttributesPacket();
         $pk->entityId = 0;
         $pk->entries = $entries;
         $this->dataPacket($pk);
         foreach ($entries as $entry) {
             $entry->markSynchronized();
         }
     }
     return $hasUpdate;
 }