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> pContextProvider) private
Builder
(Function<TestFinder<T>, T> pContextProvider, UnaryOperator<Supplier<Stream<TestFunction>>> pTestFunctionFinderWrapper, UnaryOperator<Supplier<Stream<BlockPos>>> pStructureBlockPosFinderWrapper) -
Method Summary
Modifier and TypeMethodDescriptionallNearby
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext) allTests
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext) allTestsInClass
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pClassName) private T
build
(CommandSourceStack pSource, TestFunctionFinder pTestFunctionFinder, StructureBlockPosFinder pStructureBlockPosFinder) byArgument
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pArgumentName) private static <Q> UnaryOperator
<Supplier<Stream<Q>>> createCopies
(int pCount) createMultipleCopies
(int pCount) failedTests
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext) failedTests
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, boolean pOnlyRequired) locateByName
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pName) lookedAt
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext) nearest
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext) radius
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, int pRadius)
-
Field Details
-
contextProvider
-
testFunctionFinderWrapper
-
structureBlockPosFinderWrapper
-
-
Constructor Details
-
Builder
-
Builder
private Builder(Function<TestFinder<T>, T> pContextProvider, UnaryOperator<Supplier<Stream<TestFunction>>> pTestFunctionFinderWrapper, UnaryOperator<Supplier<Stream<BlockPos>>> pStructureBlockPosFinderWrapper)
-
-
Method Details
-
createMultipleCopies
-
createCopies
-
build
private T build(CommandSourceStack pSource, TestFunctionFinder pTestFunctionFinder, StructureBlockPosFinder pStructureBlockPosFinder) -
radius
public T radius(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, int pRadius) -
nearest
-
allNearby
-
lookedAt
-
allTests
-
allTestsInClass
public T allTestsInClass(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pClassName) -
failedTests
public T failedTests(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, boolean pOnlyRequired) -
byArgument
public T byArgument(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pArgumentName) -
locateByName
public T locateByName(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pName) -
failedTests
-