mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Remove deprecated effects methods from Entity
This commit is contained in:
parent
d9769360fe
commit
087badcb48
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user