Package net.minecraft.gametest.framework
Class TestFinder.Builder<T>
java.lang.Object
net.minecraft.gametest.framework.TestFinder.Builder<T>
- Enclosing class:
TestFinder<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Function
<TestFinder<T>, T> private final UnaryOperator
<Supplier<Stream<BlockPos>>> private final UnaryOperator
<Supplier<Stream<TestFunction>>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionBuilder
(Function<TestFinder<T>, T> contextProvider) private
Builder
(Function<TestFinder<T>, T> contextProvider, UnaryOperator<Supplier<Stream<TestFunction>>> testFunctionFinderWrapper, UnaryOperator<Supplier<Stream<BlockPos>>> structureBlockPosFinderWrapper) -
Method Summary
Modifier and TypeMethodDescriptionallNearby
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context) allTests
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context) allTestsInClass
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String className) private T
build
(CommandSourceStack source, TestFunctionFinder testFunctionFinder, StructureBlockPosFinder structureBlockPosFinder) byArgument
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String argumentName) private static <Q> UnaryOperator
<Supplier<Stream<Q>>> createCopies
(int count) createMultipleCopies
(int count) failedTests
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context) failedTests
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, boolean onlyRequired) locateByName
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) lookedAt
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context) nearest
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context) radius
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, int radius)
-
Field Details
-
contextProvider
-
testFunctionFinderWrapper
-
structureBlockPosFinderWrapper
-
-
Constructor Details
-
Builder
-
Builder
private Builder(Function<TestFinder<T>, T> contextProvider, UnaryOperator<Supplier<Stream<TestFunction>>> testFunctionFinderWrapper, UnaryOperator<Supplier<Stream<BlockPos>>> structureBlockPosFinderWrapper)
-
-
Method Details
-
createMultipleCopies
-
createCopies
-
build
private T build(CommandSourceStack source, TestFunctionFinder testFunctionFinder, StructureBlockPosFinder structureBlockPosFinder) -
radius
public T radius(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, int radius) -
nearest
-
allNearby
-
lookedAt
-
allTests
-
allTestsInClass
public T allTestsInClass(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String className) -
failedTests
public T failedTests(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, boolean onlyRequired) -
byArgument
public T byArgument(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String argumentName) -
locateByName
public T locateByName(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) -
failedTests
-