* and toggle the station levers on.
*
* @param delay to wait, use 0 for no delay, MAX_VALUE to wait forever.
*/
public void waitTrain(long delay) {
ActionTrackerGroup actions = info.getGroup().getActions();
if (TrainCarts.playSoundAtStation) {
actions.addActionSizzle();
}
if (TrainCarts.refillAtStations) {
actions.addActionRefill();
}
actions.addAction(new BlockActionSetLevers(info.getAttachedBlock(), true));
if (delay == Long.MAX_VALUE) {
actions.addActionWaitForever();
} else if (delay > 0) {
actions.addActionWait(delay);
}
}