Class WeatherTypeLightning
java.lang.Object
org.cyclops.evilcraft.core.weather.WeatherType
org.cyclops.evilcraft.core.weather.WeatherTypeLightning
Lightning weather type.
-
Field Summary
Fields inherited from class org.cyclops.evilcraft.core.weather.WeatherType
ANY, CLEAR, LIGHTNING, RAIN, WEATHER_TYPES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(net.minecraft.server.level.ServerLevel world) Activate this weather in the given world.static voidactivateThunder(net.minecraft.server.level.ServerLevel world) voiddeactivate(net.minecraft.server.level.ServerLevel world) Deactivate this weather in the given world.booleanisActive(net.minecraft.world.level.Level world) Check if this weather is active in the given world.Methods inherited from class org.cyclops.evilcraft.core.weather.WeatherType
activate, getActiveWeather, toString, valueOf
-
Constructor Details
-
WeatherTypeLightning
public WeatherTypeLightning()
-
-
Method Details
-
isActive
public boolean isActive(net.minecraft.world.level.Level world) Description copied from class:WeatherTypeCheck if this weather is active in the given world.- Specified by:
isActivein classWeatherType- Parameters:
world- The world.- Returns:
- If it is active.
-
activate
public void activate(net.minecraft.server.level.ServerLevel world) Description copied from class:WeatherTypeActivate this weather in the given world.- Specified by:
activatein classWeatherType- Parameters:
world- The world.
-
deactivate
public void deactivate(net.minecraft.server.level.ServerLevel world) Description copied from class:WeatherTypeDeactivate this weather in the given world.- Specified by:
deactivatein classWeatherType- Parameters:
world- The world.
-
activateThunder
public static void activateThunder(net.minecraft.server.level.ServerLevel world)
-