mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
phpdoc armageddon for master, pass 1
This commit is contained in:
@ -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){
|
||||
|
Reference in New Issue
Block a user