Remove deprecated effects methods from Entity

This commit is contained in:
Dylan K. Taylor 2017-10-19 16:35:44 +01:00
parent d9769360fe
commit 087badcb48

View File

@ -682,62 +682,6 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
}
}
/**
* @deprecated
*
* @return Effect[]
*/
public function getEffects() : array{
return [];
}
/**
* @deprecated
*/
public function removeAllEffects(){
}
/**
* @deprecated
*
* @param int $effectId
*/
public function removeEffect(int $effectId){
}
/**
* @deprecated
*
* @param int $effectId
*
* @return Effect|null
*/
public function getEffect(int $effectId){
return null;
}
/**
* @deprecated
*
* @param int $effectId
*
* @return bool
*/
public function hasEffect(int $effectId) : bool{
return false;
}
/**
* @deprecated
*
* @param Effect $effect
*/
public function addEffect(Effect $effect){
throw new \BadMethodCallException("Cannot add effects to non-living entities");
}
/**
* @param int|string $type
* @param Level $level
@ -887,16 +831,6 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
$player->dataPacket($pk);
}
/**
* @deprecated
*
* @param Player $player
*/
public function sendPotionEffects(Player $player){
}
/**
* @param Player[]|Player $player
* @param array $data Properly formatted entity data, defaults to everything