mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
phpdoc armageddon for master, pass 1
This commit is contained in:
@ -43,16 +43,10 @@ class Note extends Tile{
|
||||
$nbt->setByte("note", $this->pitch);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getPitch() : int{
|
||||
return $this->pitch;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $pitch
|
||||
*/
|
||||
public function setPitch(int $pitch) : void{
|
||||
if($pitch < BlockNote::MIN_PITCH or $pitch > BlockNote::MAX_PITCH){
|
||||
throw new \InvalidArgumentException("Pitch must be in range " . BlockNote::MIN_PITCH . " - " . BlockNote::MAX_PITCH);
|
||||
|
Reference in New Issue
Block a user