public class Pause extends Interaction implements Encodable
InputSource
should pause for a given duration.Modifier and Type | Field and Description |
---|---|
private java.time.Duration |
duration |
Constructor and Description |
---|
Pause(InputSource device,
java.time.Duration duration) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
encode() |
protected boolean |
isValidFor(SourceType sourceType) |
getSource
public Pause(InputSource device, java.time.Duration duration)
duration
- If 0, this means "wait until all other actions in the tick have been
evaluated". Must be greater than 0.protected boolean isValidFor(SourceType sourceType)
isValidFor
in class Interaction