LightingSendToggleCommand

abstract class LightingSendToggleCommand extends AbstractWorldCommand

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

java.lang.Object > AbstractWorldCommand > LightingSendToggleCommand

Field Summary

enabled

final Boolean enabled

Field enabled.

newValue

final Boolean newValue

Field newValue.

Method Detail

LightingSendToggleCommand

public protected LightingSendToggleCommand (@Nonnull final String name, @Nonnull final String description, @Nonnull final String enabledDesc, @Nonnull final String statusTranslationKey, @Nonnull final BooleanSupplier getter, @Nonnull final Consumer setter)

Method LightingSendToggleCommand.

Parameters:
@Nonnull final String name
@Nonnull final String description
@Nonnull final String enabledDesc
@Nonnull final String statusTranslationKey
@Nonnull final BooleanSupplier getter
@Nonnull final Consumer setter

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