mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
entity data packets are sent as ordered reliable packets in entity queue, explosions dont send what blocks they exploded in ExplosionPacket
This commit is contained in:
parent
d4036d8ac9
commit
37e2919f46
14 changed files with 166 additions and 136 deletions
|
|
@ -1,6 +1,9 @@
|
|||
<?php
|
||||
|
||||
class EntityAPI{
|
||||
/**
|
||||
* @var Entity[]
|
||||
*/
|
||||
public $entities;
|
||||
private $server;
|
||||
private $eCnt = 1;
|
||||
|
|
@ -222,6 +225,13 @@ class EntityAPI{
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param Position $center
|
||||
* @param number $radius
|
||||
* @param boolean $class
|
||||
* @return Entity[]
|
||||
*/
|
||||
public function getRadius(Position $center, $radius = 15, $class = false){
|
||||
$minChunkX = ((int)($center->x - $radius)) >> 4;
|
||||
$minChunkZ = ((int)($center->z - $radius)) >> 4;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue