Implemented basic Ender Pearls

this doesn't have full functionality yet (like spawning endermites) because some things aren't implemented yet.
This commit is contained in:
Dylan K. Taylor
2018-03-09 19:05:14 +00:00
parent 8020780fc5
commit cc1a3d695f
4 changed files with 119 additions and 1 deletions

View File

@ -34,6 +34,7 @@ use pocketmine\entity\object\Painting;
use pocketmine\entity\object\PaintingMotive;
use pocketmine\entity\projectile\Arrow;
use pocketmine\entity\projectile\Egg;
use pocketmine\entity\projectile\EnderPearl;
use pocketmine\entity\projectile\Snowball;
use pocketmine\entity\projectile\SplashPotion;
use pocketmine\event\entity\EntityDamageEvent;
@ -231,6 +232,7 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
Entity::registerEntity(Arrow::class, false, ['Arrow', 'minecraft:arrow']);
Entity::registerEntity(Egg::class, false, ['Egg', 'minecraft:egg']);
Entity::registerEntity(EnderPearl::class, false, ['ThrownEnderpearl', 'minecraft:ender_pearl']);
Entity::registerEntity(ExperienceOrb::class, false, ['XPOrb', 'minecraft:xp_orb']);
Entity::registerEntity(FallingSand::class, false, ['FallingSand', 'minecraft:falling_block']);
Entity::registerEntity(Item::class, false, ['Item', 'minecraft:item']);