Package net.minecraft.gametest.framework
Class StructureUtils
java.lang.Object
net.minecraft.gametest.framework.StructureUtils
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidaddCommandBlockAndButtonToStartTest(BlockPos p_127876_, BlockPos p_127877_, Rotation p_127878_, ServerLevel p_127879_) private static voidclearBlock(int p_127842_, BlockPos p_127843_, ServerLevel p_127844_) static voidclearSpaceForStructure(BoundingBox p_127850_, ServerLevel p_127852_) static voidcreateNewEmptyStructureBlock(String p_177765_, BlockPos p_177766_, Vec3i p_177767_, Rotation p_177768_, ServerLevel p_177769_) private static StructureBlockEntitycreateStructureBlock(GameTestInfo p_312256_, BlockPos p_127892_, Rotation p_127893_, ServerLevel p_127894_) private static booleandoesStructureContain(BlockPos p_127868_, BlockPos p_127869_, ServerLevel p_127870_) static BlockPosfindNearestStructureBlock(BlockPos p_127907_, int p_127908_, ServerLevel p_127909_) findStructureBlockContainingPos(BlockPos p_127854_, int p_127855_, ServerLevel p_127856_) static Collection<BlockPos>findStructureBlocks(BlockPos p_127911_, int p_127912_, ServerLevel p_127913_) private static voidforceLoadChunks(BoundingBox p_308909_, ServerLevel p_127859_) static RotationgetRotationForRotationSteps(int p_127836_) static intgetRotationStepsForRotation(Rotation p_177752_) static BoundingBoxgetStructureBoundingBox(BlockPos p_177761_, Vec3i p_177762_, Rotation p_177763_) static BoundingBoxgetStructureBoundingBox(StructureBlockEntity p_127905_) static AABBgetStructureBounds(StructureBlockEntity p_127848_) static BlockPosgetStructureOrigin(StructureBlockEntity p_308940_) static BlockPosgetTransformedFarCorner(BlockPos p_308915_, Vec3i p_309132_, Rotation p_308895_) static StructureBlockEntityprepareTestStructure(GameTestInfo p_312267_, BlockPos p_309600_, Rotation p_309541_, ServerLevel p_309609_) 
- 
Field Details- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
DEFAULT_TEST_STRUCTURES_DIR- See Also:
 
- 
testStructuresDir
 
- 
- 
Constructor Details- 
StructureUtilspublic StructureUtils()
 
- 
- 
Method Details- 
getRotationForRotationSteps
- 
getRotationStepsForRotation
- 
getStructureBounds
- 
getStructureBoundingBox
- 
getStructureOrigin
- 
addCommandBlockAndButtonToStartTestpublic static void addCommandBlockAndButtonToStartTest(BlockPos p_127876_, BlockPos p_127877_, Rotation p_127878_, ServerLevel p_127879_) 
- 
createNewEmptyStructureBlockpublic static void createNewEmptyStructureBlock(String p_177765_, BlockPos p_177766_, Vec3i p_177767_, Rotation p_177768_, ServerLevel p_177769_) 
- 
prepareTestStructurepublic static StructureBlockEntity prepareTestStructure(GameTestInfo p_312267_, BlockPos p_309600_, Rotation p_309541_, ServerLevel p_309609_) 
- 
forceLoadChunks
- 
clearSpaceForStructure
- 
getTransformedFarCorner
- 
getStructureBoundingBoxpublic static BoundingBox getStructureBoundingBox(BlockPos p_177761_, Vec3i p_177762_, Rotation p_177763_) 
- 
findStructureBlockContainingPospublic static Optional<BlockPos> findStructureBlockContainingPos(BlockPos p_127854_, int p_127855_, ServerLevel p_127856_) 
- 
findNearestStructureBlock@Nullable public static BlockPos findNearestStructureBlock(BlockPos p_127907_, int p_127908_, ServerLevel p_127909_) 
- 
findStructureBlockspublic static Collection<BlockPos> findStructureBlocks(BlockPos p_127911_, int p_127912_, ServerLevel p_127913_) 
- 
createStructureBlockprivate static StructureBlockEntity createStructureBlock(GameTestInfo p_312256_, BlockPos p_127892_, Rotation p_127893_, ServerLevel p_127894_) 
- 
clearBlock
- 
doesStructureContainprivate static boolean doesStructureContain(BlockPos p_127868_, BlockPos p_127869_, ServerLevel p_127870_) 
 
-