move network entity IDs to network namespace

we're going to need a dedicated data package, because this stuff isn't just network-specific.
This commit is contained in:
Dylan K. Taylor
2019-07-19 15:33:30 +01:00
parent 0ebd3e6ca2
commit ac12911561
18 changed files with 157 additions and 137 deletions

View File

@@ -33,6 +33,7 @@ use pocketmine\event\entity\ProjectileHitEntityEvent;
use pocketmine\event\entity\ProjectileHitEvent;
use pocketmine\item\Potion;
use pocketmine\nbt\tag\CompoundTag;
use pocketmine\network\mcpe\protocol\types\EntityLegacyIds;
use pocketmine\network\mcpe\protocol\types\EntityMetadataFlags;
use pocketmine\network\mcpe\protocol\types\EntityMetadataProperties;
use pocketmine\utils\Color;
@@ -43,7 +44,7 @@ use function sqrt;
class SplashPotion extends Throwable{
public const NETWORK_ID = self::SPLASH_POTION;
public const NETWORK_ID = EntityLegacyIds::SPLASH_POTION;
protected $gravity = 0.05;
protected $drag = 0.01;