mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Added EntityIds interface with constants
This commit is contained in:
@ -27,7 +27,7 @@ use pocketmine\network\mcpe\protocol\AddEntityPacket;
|
||||
use pocketmine\Player;
|
||||
|
||||
class Snowball extends Throwable{
|
||||
const NETWORK_ID = 81;
|
||||
const NETWORK_ID = self::SNOWBALL;
|
||||
|
||||
public function spawnTo(Player $player){
|
||||
$pk = new AddEntityPacket();
|
||||
|
Reference in New Issue
Block a user