Class StructureGridSpawner
java.lang.Object
net.minecraft.gametest.framework.StructureGridSpawner
- All Implemented Interfaces:
GameTestRunner.StructureSpawner
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final Function<ResourceKey<Level>, BlockPos> private final Map<ResourceKey<Level>, StructureGridSpawner.DimensionGridState> private static final intprivate static final intprivate final intFields inherited from interface GameTestRunner.StructureSpawner
IN_PLACE, NOT_SET -
Constructor Summary
ConstructorsConstructorDescriptionStructureGridSpawner(Function<ResourceKey<Level>, BlockPos> firstTestNorthWestCorner, int testsPerRow, boolean clearOnBatch) -
Method Summary
Modifier and TypeMethodDescriptiongridFor(GameTestInfo testInfo) voidonBatchStart(MinecraftServer server) spawnStructure(GameTestInfo testInfo)
-
Field Details
-
SPACE_BETWEEN_COLUMNS
private static final int SPACE_BETWEEN_COLUMNS- See Also:
-
SPACE_BETWEEN_ROWS
private static final int SPACE_BETWEEN_ROWS- See Also:
-
testsPerRow
private final int testsPerRow -
firstTestNorthWestCorner
-
clearOnBatch
private final boolean clearOnBatch -
grids
-
-
Constructor Details
-
StructureGridSpawner
public StructureGridSpawner(Function<ResourceKey<Level>, BlockPos> firstTestNorthWestCorner, int testsPerRow, boolean clearOnBatch)
-
-
Method Details
-
gridFor
-
onBatchStart
- Specified by:
onBatchStartin interfaceGameTestRunner.StructureSpawner
-
spawnStructure
- Specified by:
spawnStructurein interfaceGameTestRunner.StructureSpawner
-