mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-22 10:56:35 +00:00
Block: improve some documentation
This commit is contained in:
parent
288bd4018b
commit
a459e3c1a9
@ -402,7 +402,7 @@ class Block{
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AKA: Block->isPlaceable
|
* Returns whether this block can be placed when obtained as an item.
|
||||||
*/
|
*/
|
||||||
public function canBePlaced() : bool{
|
public function canBePlaced() : bool{
|
||||||
return true;
|
return true;
|
||||||
@ -572,6 +572,9 @@ class Block{
|
|||||||
return $this->getLightFilter() > 0;
|
return $this->getLightFilter() > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns whether this block allows any light to pass through it.
|
||||||
|
*/
|
||||||
public function isTransparent() : bool{
|
public function isTransparent() : bool{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -590,7 +593,7 @@ class Block{
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AKA: Block->isFlowable
|
* Returns whether this block can be destroyed by liquid flowing into its cell.
|
||||||
*/
|
*/
|
||||||
public function canBeFlowedInto() : bool{
|
public function canBeFlowedInto() : bool{
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user