setPowered

public void setPowered(boolean bool)

Sets the current state of this Material

Parameters

bool

whether or not the command block is powered