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 Stringname@Nonnull final Stringdescription@Nonnull final StringenabledDesc@Nonnull final StringstatusTranslationKey@Nonnull final BooleanSuppliergetter@Nonnull final Consumersetter
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