setPowered

public void setPowered(boolean bool)

Sets the current state of this button

Parameters

bool

whether or not the button is powered