Class ParametrizedGameTestSequence<T>
java.lang.Object
net.neoforged.testframework.gametest.ParametrizedGameTestSequence<T>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionParametrizedGameTestSequence
(GameTestInfo info, ExtendedSequence sequence, Supplier<T> value) -
Method Summary
Modifier and TypeMethodDescriptionthenExecute
(Runnable runnable) thenExecute
(Consumer<T> runnable) thenExecuteAfter
(int ticks, Runnable runnable) thenExecuteAfter
(int ticks, Consumer<T> runnable) thenExecuteFor
(int ticks, Runnable runnable) thenExecuteFor
(int ticks, Consumer<T> runnable) void
void
thenIdle
(int amount) <Z> ParametrizedGameTestSequence
<Z> <Z> ParametrizedGameTestSequence
<Z> <Z> ParametrizedGameTestSequence
<Z> thenMapAfter
(int ticks, Function<T, Z> mapper) <Z> ParametrizedGameTestSequence
<Z> thenMapAfter
(int ticks, Supplier<Z> value) <Z> ParametrizedGameTestSequence
<Z> thenMapToSequence
(BiFunction<ParametrizedGameTestSequence<T>, Supplier<T>, ParametrizedGameTestSequence<Z>> sequence) <Z> ParametrizedGameTestSequence
<Z> thenMapToSequence
(Function<Supplier<T>, ParametrizedGameTestSequence<Z>> sequence) thenSequence
(BiConsumer<ParametrizedGameTestSequence<T>, Supplier<T>> sequence) thenSequence
(Consumer<ParametrizedGameTestSequence<T>> sequence) void
thenWaitUntil
(long ticks, Runnable condition) thenWaitUntil
(long ticks, Consumer<T> condition) thenWaitUntil
(Runnable condition) thenWaitUntil
(Consumer<T> condition)
-
Field Details
-
info
-
sequence
-
value
-
-
Constructor Details
-
ParametrizedGameTestSequence
public ParametrizedGameTestSequence(GameTestInfo info, ExtendedSequence sequence, Supplier<T> value)
-
-
Method Details
-
thenWaitUntil
-
thenWaitUntil
-
thenWaitUntil
-
thenWaitUntil
-
thenIdle
-
thenExecute
-
thenExecute
-
thenExecuteAfter
-
thenExecuteAfter
-
thenExecuteFor
-
thenExecuteFor
-
thenMap
-
thenMapAfter
-
thenMap
-
thenMapAfter
-
thenMapToSequence
public <Z> ParametrizedGameTestSequence<Z> thenMapToSequence(BiFunction<ParametrizedGameTestSequence<T>, Supplier<T>, ParametrizedGameTestSequence<Z>> sequence) -
thenMapToSequence
public <Z> ParametrizedGameTestSequence<Z> thenMapToSequence(Function<Supplier<T>, ParametrizedGameTestSequence<Z>> sequence) -
thenSequence
public ParametrizedGameTestSequence<T> thenSequence(BiConsumer<ParametrizedGameTestSequence<T>, Supplier<T>> sequence) -
thenSequence
public ParametrizedGameTestSequence<T> thenSequence(Consumer<ParametrizedGameTestSequence<T>> sequence) -
thenSucceed
public void thenSucceed() -
thenFail
-
thenFail
-
thenTrigger
-