PHP Class pocketmine\level\weather\Weather

ファイルを表示 Open project: iTXTech/Genisys Class Usage Examples

Public Methods

Method Description
__construct ( Level $level, $duration = 1200 )
calcWeather ( $currentTick )
canCalculate ( ) : boolean
getRandomWeatherData ( ) : array
getStrength ( ) : array
getWeather ( ) : integer
getWeatherFromString ( $weather )
isRainy ( ) : boolean
isRainyThunder ( ) : boolean
isSunny ( ) : boolean
isThunder ( ) : boolean
sendWeather ( Player $p )
sendWeatherToAll ( )
setCanCalculate ( boolean $canCalc )
setRandomWeatherData ( array $randomWeatherData )
setWeather ( integer $wea, integer $duration = 12000 )

Method Details

__construct() public method

public __construct ( Level $level, $duration = 1200 )
$level pocketmine\level\Level

calcWeather() public method

public calcWeather ( $currentTick )

canCalculate() public method

public canCalculate ( ) : boolean
return boolean

getRandomWeatherData() public method

public getRandomWeatherData ( ) : array
return array

getStrength() public method

public getStrength ( ) : array
return array

getWeather() public method

public getWeather ( ) : integer
return integer

getWeatherFromString() public static method

public static getWeatherFromString ( $weather )

isRainy() public method

public isRainy ( ) : boolean
return boolean

isRainyThunder() public method

public isRainyThunder ( ) : boolean
return boolean

isSunny() public method

public isSunny ( ) : boolean
return boolean

isThunder() public method

public isThunder ( ) : boolean
return boolean

sendWeather() public method

public sendWeather ( Player $p )
$p pocketmine\Player

sendWeatherToAll() public method

public sendWeatherToAll ( )

setCanCalculate() public method

public setCanCalculate ( boolean $canCalc )
$canCalc boolean

setRandomWeatherData() public method

public setRandomWeatherData ( array $randomWeatherData )
$randomWeatherData array

setWeather() public method

public setWeather ( integer $wea, integer $duration = 12000 )
$wea integer
$duration integer