Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.weather.WeatherChangeEvent Class Reference
Inheritance diagram for org.bukkit.event.weather.WeatherChangeEvent:
org.bukkit.event.weather.WeatherEvent org.bukkit.event.Cancellable org.bukkit.event.Event

Public Member Functions

 WeatherChangeEvent (final World world, final boolean to)
 
boolean isCancelled ()
 
void setCancelled (boolean cancel)
 
boolean toWeatherState ()
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.weather.WeatherEvent
 WeatherEvent (final World where)
 
final World getWorld ()
 
- Public Member Functions inherited from org.bukkit.event.Event
 Event ()
 
 Event (boolean isAsync)
 
String getEventName ()
 
abstract HandlerList getHandlers ()
 
final boolean isAsynchronous ()
 

Static Public Member Functions

static HandlerList getHandlerList ()
 

Additional Inherited Members

- Protected Attributes inherited from org.bukkit.event.weather.WeatherEvent
World world
 

Detailed Description

Stores data for weather changing in a world

Definition at line 10 of file WeatherChangeEvent.java.

Member Function Documentation

boolean org.bukkit.event.weather.WeatherChangeEvent.isCancelled ( )

Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins

Returns
true if this event is cancelled

Implements org.bukkit.event.Cancellable.

Definition at line 20 of file WeatherChangeEvent.java.

20  {
21  return canceled;
22  }
void org.bukkit.event.weather.WeatherChangeEvent.setCancelled ( boolean  cancel)

Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.

Parameters
canceltrue if you wish to cancel this event

Implements org.bukkit.event.Cancellable.

Definition at line 24 of file WeatherChangeEvent.java.

24  {
25  canceled = cancel;
26  }
boolean org.bukkit.event.weather.WeatherChangeEvent.toWeatherState ( )

Gets the state of weather that the world is being set to

Returns
true if the weather is being set to raining, false otherwise

Definition at line 33 of file WeatherChangeEvent.java.

33  {
34  return to;
35  }

The documentation for this class was generated from the following file: