diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index c6672be004..142aab1227 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -3236,8 +3236,6 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{ /** * Adds a title text to the user's screen, with an optional subtitle. * - * @param string $title - * @param string $subtitle * @param int $fadeIn Duration in ticks for fade-in. If -1 is given, client-sided defaults will be used. * @param int $stay Duration in ticks to stay on screen for * @param int $fadeOut Duration in ticks for fade-out. @@ -3262,8 +3260,6 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{ /** * Sets the subtitle message, without sending a title. - * - * @param string $subtitle */ public function sendSubTitle(string $subtitle) : void{ $this->sendTitleText($subtitle, SetTitlePacket::TYPE_SET_SUBTITLE); @@ -3281,8 +3277,6 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{ /** * Adds small text to the user's screen. - * - * @param string $message */ public function sendActionBarMessage(string $message) : void{ $this->sendTitleText($message, SetTitlePacket::TYPE_SET_ACTIONBAR_MESSAGE); diff --git a/src/pocketmine/event/entity/EntityDeathEvent.php b/src/pocketmine/event/entity/EntityDeathEvent.php index 3dfd9cb1a5..4eb9953ab5 100644 --- a/src/pocketmine/event/entity/EntityDeathEvent.php +++ b/src/pocketmine/event/entity/EntityDeathEvent.php @@ -34,7 +34,6 @@ class EntityDeathEvent extends EntityEvent{ /** * @param Item[] $drops - * @param int $xp */ public function __construct(Living $entity, array $drops = [], int $xp = 0){ $this->entity = $entity; @@ -65,15 +64,12 @@ class EntityDeathEvent extends EntityEvent{ /** * Returns how much experience is dropped due to this entity's death. - * @return int */ public function getXpDropAmount() : int{ return $this->xp; } /** - * @param int $xp - * * @throws \InvalidArgumentException */ public function setXpDropAmount(int $xp) : void{ diff --git a/src/pocketmine/event/player/PlayerDeathEvent.php b/src/pocketmine/event/player/PlayerDeathEvent.php index 9d7e65903c..84d539a119 100644 --- a/src/pocketmine/event/player/PlayerDeathEvent.php +++ b/src/pocketmine/event/player/PlayerDeathEvent.php @@ -46,7 +46,6 @@ class PlayerDeathEvent extends EntityDeathEvent{ /** * @param Item[] $drops * @param string|TextContainer|null $deathMessage Null will cause the default vanilla message to be used - * @param int $xp */ public function __construct(Player $entity, array $drops, $deathMessage = null, int $xp = 0){ parent::__construct($entity, $drops, $xp); diff --git a/src/pocketmine/inventory/FurnaceRecipe.php b/src/pocketmine/inventory/FurnaceRecipe.php index 5e1175e44e..185f05ee79 100644 --- a/src/pocketmine/inventory/FurnaceRecipe.php +++ b/src/pocketmine/inventory/FurnaceRecipe.php @@ -55,8 +55,6 @@ class FurnaceRecipe implements Recipe{ /** * @deprecated - * - * @param CraftingManager $manager */ public function registerToCraftingManager(CraftingManager $manager) : void{ $manager->registerFurnaceRecipe($this); diff --git a/src/pocketmine/inventory/Inventory.php b/src/pocketmine/inventory/Inventory.php index 0fba616d4e..dd81b272ad 100644 --- a/src/pocketmine/inventory/Inventory.php +++ b/src/pocketmine/inventory/Inventory.php @@ -154,9 +154,6 @@ interface Inventory{ /** * Swaps the specified slots. - * - * @param int $slot1 - * @param int $slot2 */ public function swap(int $slot1, int $slot2) : void; diff --git a/src/pocketmine/inventory/Recipe.php b/src/pocketmine/inventory/Recipe.php index f97e985b99..917c324001 100644 --- a/src/pocketmine/inventory/Recipe.php +++ b/src/pocketmine/inventory/Recipe.php @@ -30,8 +30,6 @@ interface Recipe{ /** * @deprecated - * - * @param CraftingManager $manager */ public function registerToCraftingManager(CraftingManager $manager) : void; } diff --git a/src/pocketmine/inventory/ShapedRecipe.php b/src/pocketmine/inventory/ShapedRecipe.php index beb2930267..a8126c55ce 100644 --- a/src/pocketmine/inventory/ShapedRecipe.php +++ b/src/pocketmine/inventory/ShapedRecipe.php @@ -178,8 +178,6 @@ class ShapedRecipe implements CraftingRecipe{ /** * @deprecated - * - * @param CraftingManager $manager */ public function registerToCraftingManager(CraftingManager $manager) : void{ $manager->registerShapedRecipe($this); diff --git a/src/pocketmine/inventory/ShapelessRecipe.php b/src/pocketmine/inventory/ShapelessRecipe.php index aa3e8c38ef..f277bf2267 100644 --- a/src/pocketmine/inventory/ShapelessRecipe.php +++ b/src/pocketmine/inventory/ShapelessRecipe.php @@ -107,8 +107,6 @@ class ShapelessRecipe implements CraftingRecipe{ /** * @deprecated - * - * @param CraftingManager $manager */ public function registerToCraftingManager(CraftingManager $manager) : void{ $manager->registerShapelessRecipe($this); diff --git a/src/pocketmine/level/Level.php b/src/pocketmine/level/Level.php index c298ec4b87..b1d11c6cbe 100644 --- a/src/pocketmine/level/Level.php +++ b/src/pocketmine/level/Level.php @@ -2842,8 +2842,6 @@ class Level implements ChunkManager, Metadatable{ /** * Returns the current time of day - * - * @return int */ public function getTimeOfDay() : int{ return $this->time % self::TIME_FULL; diff --git a/src/pocketmine/utils/Config.php b/src/pocketmine/utils/Config.php index 0c984c6195..c58acff71e 100644 --- a/src/pocketmine/utils/Config.php +++ b/src/pocketmine/utils/Config.php @@ -246,8 +246,6 @@ class Config{ /** * Returns the path of the config. - * - * @return string */ public function getPath() : string{ return $this->file; diff --git a/src/pocketmine/utils/Process.php b/src/pocketmine/utils/Process.php index bd95da3cfe..3472647bf5 100644 --- a/src/pocketmine/utils/Process.php +++ b/src/pocketmine/utils/Process.php @@ -46,8 +46,6 @@ final class Process{ } /** - * @param bool $advanced - * * @return int[]|int */ public static function getMemoryUsage(bool $advanced = false){ diff --git a/src/pocketmine/utils/Terminal.php b/src/pocketmine/utils/Terminal.php index 94d4be6d6c..c5117d2869 100644 --- a/src/pocketmine/utils/Terminal.php +++ b/src/pocketmine/utils/Terminal.php @@ -292,8 +292,6 @@ abstract class Terminal{ /** * Emits a string containing Minecraft colour codes to the console formatted with native colours. - * - * @param string $line */ public static function write(string $line) : void{ echo self::toANSI($line); @@ -302,8 +300,6 @@ abstract class Terminal{ /** * Emits a string containing Minecraft colour codes to the console formatted with native colours, followed by a * newline character. - * - * @param string $line */ public static function writeLine(string $line) : void{ echo self::toANSI($line) . self::$FORMAT_RESET . PHP_EOL; diff --git a/src/pocketmine/utils/Utils.php b/src/pocketmine/utils/Utils.php index e2871ccdf3..643f9ee274 100644 --- a/src/pocketmine/utils/Utils.php +++ b/src/pocketmine/utils/Utils.php @@ -293,8 +293,6 @@ class Utils{ /** * @deprecated * @see Process::getThreadCount() - * - * @return int */ public static function getThreadCount() : int{ return Process::getThreadCount();