mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 18:50:51 +01:00
Added weather control methods.
By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
parent
60bfea1fce
commit
28011b1217
1 changed files with 29 additions and 0 deletions
|
@ -409,6 +409,35 @@ public interface World {
|
||||||
* @see #setTime(long) Sets the relative time of this world
|
* @see #setTime(long) Sets the relative time of this world
|
||||||
*/
|
*/
|
||||||
public void setFullTime(long time);
|
public void setFullTime(long time);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns whether the world has an ongoing storm.
|
||||||
|
*
|
||||||
|
* @return Whether there is an ongoing storm
|
||||||
|
*/
|
||||||
|
public boolean hasStorm();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set whether there is a storm. A duration will be set for the new
|
||||||
|
* current conditions.
|
||||||
|
*
|
||||||
|
* @param hasStorm Whether there is rain and snow
|
||||||
|
*/
|
||||||
|
public void setStorm(boolean hasStorm);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the remaining time in ticks of the current conditions.
|
||||||
|
*
|
||||||
|
* @return Time in ticks
|
||||||
|
*/
|
||||||
|
public int getWeatherDuration();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the remaining time in ticks of the current conditions.
|
||||||
|
*
|
||||||
|
* @param duration Time in ticks
|
||||||
|
*/
|
||||||
|
public void setWeatherDuration(int duration);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the {@link Environment} type of this world
|
* Gets the {@link Environment} type of this world
|
||||||
|
|
Loading…
Reference in a new issue