From ec5598dbb179d3e3eea303c650772206f369b565 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 12 Oct 2018 16:35:51 +0100 Subject: [PATCH] Deprecate things removed in acb794e72 and 97c836f19 --- src/pocketmine/event/entity/EntityDespawnEvent.php | 6 ++++++ src/pocketmine/event/entity/EntitySpawnEvent.php | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/src/pocketmine/event/entity/EntityDespawnEvent.php b/src/pocketmine/event/entity/EntityDespawnEvent.php index 0f456e360..e5d239c39 100644 --- a/src/pocketmine/event/entity/EntityDespawnEvent.php +++ b/src/pocketmine/event/entity/EntityDespawnEvent.php @@ -46,6 +46,7 @@ class EntityDespawnEvent extends EntityEvent{ } /** + * @deprecated * @return int */ public function getType() : int{ @@ -53,6 +54,7 @@ class EntityDespawnEvent extends EntityEvent{ } /** + * @deprecated * @return bool */ public function isCreature() : bool{ @@ -60,6 +62,7 @@ class EntityDespawnEvent extends EntityEvent{ } /** + * @deprecated * @return bool */ public function isHuman() : bool{ @@ -67,6 +70,7 @@ class EntityDespawnEvent extends EntityEvent{ } /** + * @deprecated * @return bool */ public function isProjectile() : bool{ @@ -74,6 +78,7 @@ class EntityDespawnEvent extends EntityEvent{ } /** + * @deprecated * @return bool */ public function isVehicle() : bool{ @@ -81,6 +86,7 @@ class EntityDespawnEvent extends EntityEvent{ } /** + * @deprecated * @return bool */ public function isItem() : bool{ diff --git a/src/pocketmine/event/entity/EntitySpawnEvent.php b/src/pocketmine/event/entity/EntitySpawnEvent.php index 20a068b87..fe1f800ae 100644 --- a/src/pocketmine/event/entity/EntitySpawnEvent.php +++ b/src/pocketmine/event/entity/EntitySpawnEvent.php @@ -47,6 +47,7 @@ class EntitySpawnEvent extends EntityEvent{ } /** + * @deprecated * @return Position */ public function getPosition() : Position{ @@ -54,6 +55,7 @@ class EntitySpawnEvent extends EntityEvent{ } /** + * @deprecated * @return int */ public function getType() : int{ @@ -61,6 +63,7 @@ class EntitySpawnEvent extends EntityEvent{ } /** + * @deprecated * @return bool */ public function isCreature() : bool{ @@ -68,6 +71,7 @@ class EntitySpawnEvent extends EntityEvent{ } /** + * @deprecated * @return bool */ public function isHuman() : bool{ @@ -75,6 +79,7 @@ class EntitySpawnEvent extends EntityEvent{ } /** + * @deprecated * @return bool */ public function isProjectile() : bool{ @@ -82,6 +87,7 @@ class EntitySpawnEvent extends EntityEvent{ } /** + * @deprecated * @return bool */ public function isVehicle() : bool{ @@ -89,6 +95,7 @@ class EntitySpawnEvent extends EntityEvent{ } /** + * @deprecated * @return bool */ public function isItem() : bool{