mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
Consistent fluency for block property setters
This commit is contained in:
@ -54,12 +54,14 @@ class NetherPortal extends Transparent{
|
||||
|
||||
/**
|
||||
* @throws \InvalidArgumentException
|
||||
* @return $this
|
||||
*/
|
||||
public function setAxis(int $axis) : void{
|
||||
public function setAxis(int $axis) : self{
|
||||
if($axis !== Facing::AXIS_X and $axis !== Facing::AXIS_Z){
|
||||
throw new \InvalidArgumentException("Invalid axis");
|
||||
}
|
||||
$this->axis = $axis;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getLightLevel() : int{
|
||||
|
Reference in New Issue
Block a user