Merge pull request #3952 from dongjoon-hyun/add_docs_for_throws

Add @throws docs.
This commit is contained in:
PEMapModder 2016-02-18 16:45:54 +08:00
commit fc42fc534b
3 changed files with 12 additions and 0 deletions

View File

@ -1029,6 +1029,8 @@ class Server{
* @param bool $forceUnload
*
* @return bool
*
* @throws \InvalidStateException
*/
public function unloadLevel(Level $level, $forceUnload = false){
if($level === $this->getDefaultLevel() and !$forceUnload){

View File

@ -2497,6 +2497,8 @@ class Level implements ChunkManager, Metadatable{
* @param bool $generate
*
* @return bool
*
* @throws \InvalidStateException
*/
public function loadChunk($x, $z, $generate = true){
if(isset($this->chunks[$index = Level::chunkHash($x, $z)])){

View File

@ -81,6 +81,8 @@ abstract class Generator{
* @param int $z
*
* @return \SplFixedArray
*
* @throws \InvalidArgumentCountException
*/
public static function getFastNoise1D(Noise $noise, $xSize, $samplingRate, $x, $y, $z){
if($samplingRate === 0){
@ -116,6 +118,9 @@ abstract class Generator{
* @param int $z
*
* @return \SplFixedArray
*
* @throws \InvalidArgumentException
* @throws \InvalidArgumentCountException
*/
public static function getFastNoise2D(Noise $noise, $xSize, $zSize, $samplingRate, $x, $y, $z){
if($samplingRate === 0){
@ -171,6 +176,9 @@ abstract class Generator{
* @param int $z
*
* @return \SplFixedArray
*
* @throws \InvalidArgumentException
* @throws \InvalidArgumentCountException
*/
public static function getFastNoise3D(Noise $noise, $xSize, $ySize, $zSize, $xSamplingRate, $ySamplingRate, $zSamplingRate, $x, $y, $z){
if($xSamplingRate === 0){