added throwable eggs and refactor some projectile logic

close #1473
This commit is contained in:
Dylan K. Taylor
2017-10-19 14:12:44 +01:00
parent 11cc20972f
commit 2db13bd114
5 changed files with 108 additions and 31 deletions

View File

@ -30,6 +30,7 @@ use pocketmine\block\Block;
use pocketmine\block\BlockFactory;
use pocketmine\block\Water;
use pocketmine\entity\projectile\Arrow;
use pocketmine\entity\projectile\Egg;
use pocketmine\entity\projectile\Snowball;
use pocketmine\event\entity\EntityDamageEvent;
use pocketmine\event\entity\EntityDespawnEvent;
@ -219,6 +220,7 @@ abstract class Entity extends Location implements Metadatable{
public static function init(){
Entity::registerEntity(Arrow::class);
Entity::registerEntity(Egg::class);
Entity::registerEntity(FallingSand::class);
Entity::registerEntity(Item::class);
Entity::registerEntity(PrimedTNT::class);