scrub useless phpdoc

This commit is contained in:
Dylan K. Taylor 2020-02-10 12:21:07 +00:00
parent 2d51971b84
commit 15b76a24b7
13 changed files with 0 additions and 34 deletions

View File

@ -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);

View File

@ -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{

View File

@ -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);

View File

@ -55,8 +55,6 @@ class FurnaceRecipe implements Recipe{
/**
* @deprecated
*
* @param CraftingManager $manager
*/
public function registerToCraftingManager(CraftingManager $manager) : void{
$manager->registerFurnaceRecipe($this);

View File

@ -154,9 +154,6 @@ interface Inventory{
/**
* Swaps the specified slots.
*
* @param int $slot1
* @param int $slot2
*/
public function swap(int $slot1, int $slot2) : void;

View File

@ -30,8 +30,6 @@ interface Recipe{
/**
* @deprecated
*
* @param CraftingManager $manager
*/
public function registerToCraftingManager(CraftingManager $manager) : void;
}

View File

@ -178,8 +178,6 @@ class ShapedRecipe implements CraftingRecipe{
/**
* @deprecated
*
* @param CraftingManager $manager
*/
public function registerToCraftingManager(CraftingManager $manager) : void{
$manager->registerShapedRecipe($this);

View File

@ -107,8 +107,6 @@ class ShapelessRecipe implements CraftingRecipe{
/**
* @deprecated
*
* @param CraftingManager $manager
*/
public function registerToCraftingManager(CraftingManager $manager) : void{
$manager->registerShapelessRecipe($this);

View File

@ -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;

View File

@ -246,8 +246,6 @@ class Config{
/**
* Returns the path of the config.
*
* @return string
*/
public function getPath() : string{
return $this->file;

View File

@ -46,8 +46,6 @@ final class Process{
}
/**
* @param bool $advanced
*
* @return int[]|int
*/
public static function getMemoryUsage(bool $advanced = false){

View File

@ -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;

View File

@ -293,8 +293,6 @@ class Utils{
/**
* @deprecated
* @see Process::getThreadCount()
*
* @return int
*/
public static function getThreadCount() : int{
return Process::getThreadCount();