Added EntityIds interface with constants

This commit is contained in:
Dylan K. Taylor
2017-10-19 15:43:55 +01:00
parent 2db13bd114
commit 2b22d5d8cc
11 changed files with 129 additions and 10 deletions

View File

@ -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();