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 CommandContextcontext@Nonnull final Worldworld@Nonnull final Storestore
setForcedWeather
static
void
setForcedWeather
(@Nonnull final World world, @Nullable final String forcedWeather, final ComponentAccessor componentAccessor)
Method setForcedWeather.
- Parameters:
@Nonnull final Worldworld@Nullable final StringforcedWeatherfinal ComponentAccessorcomponentAccessor