类 ParametrizedGameTestSequence<T>
java.lang.Object
net.neoforged.testframework.gametest.ParametrizedGameTestSequence<T>
-
字段概要
字段 -
构造器概要
构造器构造器说明ParametrizedGameTestSequence
(GameTestHelper helper, ExtendedSequence sequence, Supplier<T> value) -
方法概要
修饰符和类型方法说明private static <E extends Throwable>
voidsneakyThrow
(Throwable exception) thenExecute
(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
thenFail
(Function<T, GameTestException> exception) void
thenFail
(Supplier<GameTestException> exception) 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)
-
字段详细资料
-
helper
-
sequence
-
value
-
-
构造器详细资料
-
ParametrizedGameTestSequence
public ParametrizedGameTestSequence(GameTestHelper helper, ExtendedSequence sequence, Supplier<T> value)
-
-
方法详细资料
-
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
-
sneakyThrow
- 抛出:
E
-