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> p_320216_) allTests
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_320902_) allTestsInClass
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_320256_, String p_320231_) private T
build
(CommandSourceStack pSource, TestFunctionFinder pTestFunctionFinder, StructureBlockPosFinder pStructureBlockPosFinder) byArgument
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_320475_, String p_320707_) private static <Q> UnaryOperator
<Supplier<Stream<Q>>> createCopies
(int pCount) createMultipleCopies
(int pCount) failedTests
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_320220_) failedTests
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_320960_, boolean p_320352_) locateByName
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_341208_, String p_341401_) lookedAt
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_320178_) nearest
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_320944_) radius
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_320307_, int p_320811_)
-
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> p_320307_, int p_320811_) -
nearest
-
allNearby
-
lookedAt
-
allTests
-
allTestsInClass
public T allTestsInClass(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_320256_, String p_320231_) -
failedTests
public T failedTests(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_320960_, boolean p_320352_) -
byArgument
public T byArgument(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_320475_, String p_320707_) -
locateByName
public T locateByName(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_341208_, String p_341401_) -
failedTests
-