Package net.minecraft.gametest.framework
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()
private
Builder
(UnaryOperator<Supplier<Stream<Holder.Reference<GameTestInstance>>>> p_397152_, UnaryOperator<Supplier<Stream<BlockPos>>> p_398014_) -
Method Summary
Modifier and TypeMethodDescriptionallNearby
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_320216_) private TestFinder
build
(CommandSourceStack p_330622_, TestInstanceFinder p_397791_, TestPosFinder p_397288_) byResourceSelection
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_397078_, Collection<Holder.Reference<GameTestInstance>> p_397871_) private static <Q> UnaryOperator
<Supplier<Stream<Q>>> createCopies
(int p_330804_) createMultipleCopies
(int p_330482_) failedTests
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_320220_) failedTests
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_320960_, boolean p_320352_) 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
-
testFinderWrapper
-
structureBlockPosFinderWrapper
-
-
Constructor Details
-
Builder
public Builder() -
Builder
private Builder(UnaryOperator<Supplier<Stream<Holder.Reference<GameTestInstance>>>> p_397152_, UnaryOperator<Supplier<Stream<BlockPos>>> p_398014_)
-
-
Method Details
-
createMultipleCopies
-
createCopies
-
build
private TestFinder build(CommandSourceStack p_330622_, TestInstanceFinder p_397791_, TestPosFinder p_397288_) -
radius
public TestFinder radius(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_320307_, int p_320811_) -
nearest
public TestFinder nearest(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_320944_) -
allNearby
public TestFinder allNearby(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_320216_) -
lookedAt
public TestFinder lookedAt(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_320178_) -
failedTests
public TestFinder failedTests(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_320960_, boolean p_320352_) -
byResourceSelection
public TestFinder byResourceSelection(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_397078_, Collection<Holder.Reference<GameTestInstance>> p_397871_) -
failedTests
public TestFinder failedTests(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_320220_)
-