Class TestFinder.Builder
java.lang.Object
net.minecraft.gametest.framework.TestFinder.Builder
- Enclosing class:
TestFinder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final UnaryOperator<Supplier<Stream<BlockPos>>> private final UnaryOperator<Supplier<Stream<Holder.Reference<GameTestInstance>>>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionBuilder()privateBuilder(UnaryOperator<Supplier<Stream<Holder.Reference<GameTestInstance>>>> testFinderWrapper, UnaryOperator<Supplier<Stream<BlockPos>>> structureBlockPosFinderWrapper) -
Method Summary
Modifier and TypeMethodDescriptionallNearby(com.mojang.brigadier.context.CommandContext<CommandSourceStack> sourceStack) private TestFinderbuild(CommandSourceStack source, TestInstanceFinder testInstanceFinder, TestPosFinder testPosFinder) byResourceSelection(com.mojang.brigadier.context.CommandContext<CommandSourceStack> sourceStack, Collection<Holder.Reference<GameTestInstance>> holders) private static <Q> UnaryOperator<Supplier<Stream<Q>>> createCopies(int amount) createMultipleCopies(int amount) failedTests(com.mojang.brigadier.context.CommandContext<CommandSourceStack> sourceStack) failedTests(com.mojang.brigadier.context.CommandContext<CommandSourceStack> sourceStack, boolean onlyRequiredTests) lookedAt(com.mojang.brigadier.context.CommandContext<CommandSourceStack> sourceStack) nearest(com.mojang.brigadier.context.CommandContext<CommandSourceStack> sourceStack) radius(com.mojang.brigadier.context.CommandContext<CommandSourceStack> sourceStack, int radius)
-
Field Details
-
testFinderWrapper
-
structureBlockPosFinderWrapper
-
-
Constructor Details
-
Builder
public Builder() -
Builder
private Builder(UnaryOperator<Supplier<Stream<Holder.Reference<GameTestInstance>>>> testFinderWrapper, UnaryOperator<Supplier<Stream<BlockPos>>> structureBlockPosFinderWrapper)
-
-
Method Details
-
createMultipleCopies
-
createCopies
-
build
private TestFinder build(CommandSourceStack source, TestInstanceFinder testInstanceFinder, TestPosFinder testPosFinder) -
radius
public TestFinder radius(com.mojang.brigadier.context.CommandContext<CommandSourceStack> sourceStack, int radius) -
nearest
public TestFinder nearest(com.mojang.brigadier.context.CommandContext<CommandSourceStack> sourceStack) -
allNearby
public TestFinder allNearby(com.mojang.brigadier.context.CommandContext<CommandSourceStack> sourceStack) -
lookedAt
public TestFinder lookedAt(com.mojang.brigadier.context.CommandContext<CommandSourceStack> sourceStack) -
failedTests
public TestFinder failedTests(com.mojang.brigadier.context.CommandContext<CommandSourceStack> sourceStack, boolean onlyRequiredTests) -
byResourceSelection
public TestFinder byResourceSelection(com.mojang.brigadier.context.CommandContext<CommandSourceStack> sourceStack, Collection<Holder.Reference<GameTestInstance>> holders) -
failedTests
public TestFinder failedTests(com.mojang.brigadier.context.CommandContext<CommandSourceStack> sourceStack)
-