mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 04:15:04 +00:00
Entity: add abstract getNetworkTypeId(), remove NETWORK_ID constant
this now requires that subclasses supply a proper NETWORK_ID.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user