WeatherSetCommand

public class WeatherSetCommand extends AbstractWorldCommand

Command for weatherse operations. Registered with the command system and callable by players.

java.lang.Object > AbstractWorldCommand > WeatherSetCommand

Field Summary

weather

final Weather weather

Field weather.

weatherName

final String weatherName

Field weatherName.

weatherResource

final WeatherResource weatherResource

Field weatherResource.

config

final WorldConfig config

Field config.

Method Detail

WeatherSetCommand

public public WeatherSetCommand ()

Method WeatherSetCommand.

execute

protected void execute (@Nonnull final CommandContext context, @Nonnull final World world, @Nonnull final Store store)

Method execute.

Parameters:
@Nonnull final CommandContext context
@Nonnull final World world
@Nonnull final Store store

setForcedWeather

static void setForcedWeather (@Nonnull final World world, @Nullable final String forcedWeather, final ComponentAccessor componentAccessor)

Method setForcedWeather.

Parameters:
@Nonnull final World world
@Nullable final String forcedWeather
final ComponentAccessor componentAccessor