Entity: add abstract getNetworkTypeId(), remove NETWORK_ID constant

this now requires that subclasses supply a proper NETWORK_ID.
This commit is contained in:
Dylan K. Taylor
2020-05-16 16:08:12 +01:00
parent 67666db827
commit c30dd9f1b6
21 changed files with 34 additions and 32 deletions

View File

@@ -36,7 +36,8 @@ use function sqrt;
use const M_PI;
class Squid extends WaterAnimal{
public const NETWORK_ID = EntityLegacyIds::SQUID;
public static function getNetworkTypeId() : int{ return EntityLegacyIds::SQUID; }
public $width = 0.95;
public $height = 0.95;