phpdoc armageddon for master, pass 1

This commit is contained in:
Dylan K. Taylor
2020-01-22 11:55:03 +00:00
parent 4bae3baa74
commit 67bcc1c0fb
397 changed files with 0 additions and 5391 deletions

View File

@ -49,12 +49,7 @@ class BlockBreakEvent extends BlockEvent implements Cancellable{
protected $xpDrops;
/**
* @param Player $player
* @param Block $block
* @param Item $item
* @param bool $instaBreak
* @param Item[] $drops
* @param int $xpDrops
*/
public function __construct(Player $player, Block $block, Item $item, bool $instaBreak = false, array $drops, int $xpDrops = 0){
parent::__construct($block);
@ -68,7 +63,6 @@ class BlockBreakEvent extends BlockEvent implements Cancellable{
/**
* Returns the player who is destroying the block.
* @return Player
*/
public function getPlayer() : Player{
return $this->player;
@ -76,7 +70,6 @@ class BlockBreakEvent extends BlockEvent implements Cancellable{
/**
* Returns the item used to destroy the block.
* @return Item
*/
public function getItem() : Item{
return $this->item;
@ -85,16 +78,11 @@ class BlockBreakEvent extends BlockEvent implements Cancellable{
/**
* Returns whether the block may be broken in less than the amount of time calculated. This is usually true for
* creative players.
*
* @return bool
*/
public function getInstaBreak() : bool{
return $this->instaBreak;
}
/**
* @param bool $instaBreak
*/
public function setInstaBreak(bool $instaBreak) : void{
$this->instaBreak = $instaBreak;
}
@ -125,8 +113,6 @@ class BlockBreakEvent extends BlockEvent implements Cancellable{
/**
* Returns how much XP will be dropped by breaking this block.
*
* @return int
*/
public function getXpDropAmount() : int{
return $this->xpDrops;
@ -134,8 +120,6 @@ class BlockBreakEvent extends BlockEvent implements Cancellable{
/**
* Sets how much XP will be dropped by breaking this block.
*
* @param int $amount
*/
public function setXpDropAmount(int $amount) : void{
if($amount < 0){