mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
phpdoc armageddon for master, pass 1
This commit is contained in:
@ -86,30 +86,18 @@ class ItemFrame extends Flowable{
|
||||
return 0b111;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getFacing() : int{
|
||||
return $this->facing;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $facing
|
||||
*/
|
||||
public function setFacing(int $facing) : void{
|
||||
$this->facing = $facing;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Item|null
|
||||
*/
|
||||
public function getFramedItem() : ?Item{
|
||||
return $this->framedItem !== null ? clone $this->framedItem : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Item|null $item
|
||||
*/
|
||||
public function setFramedItem(?Item $item) : void{
|
||||
if($item === null or $item->isNull()){
|
||||
$this->framedItem = null;
|
||||
@ -119,30 +107,18 @@ class ItemFrame extends Flowable{
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getItemRotation() : int{
|
||||
return $this->itemRotation;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $itemRotation
|
||||
*/
|
||||
public function setItemRotation(int $itemRotation) : void{
|
||||
$this->itemRotation = $itemRotation;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return float
|
||||
*/
|
||||
public function getItemDropChance() : float{
|
||||
return $this->itemDropChance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param float $itemDropChance
|
||||
*/
|
||||
public function setItemDropChance(float $itemDropChance) : void{
|
||||
$this->itemDropChance = $itemDropChance;
|
||||
}
|
||||
|
Reference in New Issue
Block a user