Package net.minecraft.gametest.framework
Class StructureUtils
java.lang.Object
net.minecraft.gametest.framework.StructureUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
clearBlock
(int p_127842_, BlockPos p_127843_, ServerLevel p_127844_) static void
clearSpaceForStructure
(BoundingBox p_127850_, ServerLevel p_127852_) static TestInstanceBlockEntity
createNewEmptyTest
(ResourceLocation p_397331_, BlockPos p_397076_, Vec3i p_397736_, Rotation p_397442_, ServerLevel p_397074_) private static boolean
doesStructureContain
(BlockPos p_127868_, BlockPos p_127869_, ServerLevel p_127870_) findNearestTest
(BlockPos p_397163_, int p_397842_, ServerLevel p_397581_) findTestBlocks
(BlockPos p_127911_, int p_127912_, ServerLevel p_127913_) findTestContainingPos
(BlockPos p_397180_, int p_397344_, ServerLevel p_397768_) private static BoundingBox
getBoundingBoxAtGround
(BlockPos p_341291_, int p_341122_, ServerLevel p_341148_) static Rotation
getRotationForRotationSteps
(int p_127836_) static int
getRotationStepsForRotation
(Rotation p_177752_) static BoundingBox
getStructureBoundingBox
(BlockPos p_177761_, Vec3i p_177762_, Rotation p_177763_) static BlockPos
getTransformedFarCorner
(BlockPos p_308915_, Vec3i p_309132_, Rotation p_308895_) lookedAtTestPos
(BlockPos p_397600_, Entity p_397674_, ServerLevel p_397378_)
-
Field Details
-
DEFAULT_Y_SEARCH_RADIUS
public static final int DEFAULT_Y_SEARCH_RADIUS- See Also:
-
DEFAULT_TEST_STRUCTURES_DIR
- See Also:
-
testStructuresDir
-
-
Constructor Details
-
StructureUtils
public StructureUtils()
-
-
Method Details
-
getRotationForRotationSteps
-
getRotationStepsForRotation
-
createNewEmptyTest
public static TestInstanceBlockEntity createNewEmptyTest(ResourceLocation p_397331_, BlockPos p_397076_, Vec3i p_397736_, Rotation p_397442_, ServerLevel p_397074_) -
clearSpaceForStructure
-
getTransformedFarCorner
-
getStructureBoundingBox
public static BoundingBox getStructureBoundingBox(BlockPos p_177761_, Vec3i p_177762_, Rotation p_177763_) -
findTestContainingPos
public static Optional<BlockPos> findTestContainingPos(BlockPos p_397180_, int p_397344_, ServerLevel p_397768_) -
findNearestTest
public static Optional<BlockPos> findNearestTest(BlockPos p_397163_, int p_397842_, ServerLevel p_397581_) -
findTestBlocks
public static Stream<BlockPos> findTestBlocks(BlockPos p_127911_, int p_127912_, ServerLevel p_127913_) -
getBoundingBoxAtGround
private static BoundingBox getBoundingBoxAtGround(BlockPos p_341291_, int p_341122_, ServerLevel p_341148_) -
lookedAtTestPos
public static Stream<BlockPos> lookedAtTestPos(BlockPos p_397600_, Entity p_397674_, ServerLevel p_397378_) -
clearBlock
-
doesStructureContain
private static boolean doesStructureContain(BlockPos p_127868_, BlockPos p_127869_, ServerLevel p_127870_)
-