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 voidclearBlock(int structureBlockY, BlockPos pos, ServerLevel serverLevel) static voidclearSpaceForStructure(BoundingBox boundingBox, ServerLevel level) static TestInstanceBlockEntitycreateNewEmptyTest(ResourceLocation id, BlockPos pos, Vec3i size, Rotation rotation, ServerLevel level) private static booleandoesStructureContain(BlockPos structureBlockPos, BlockPos posToTest, ServerLevel serverLevel) findNearestTest(BlockPos pos, int radius, ServerLevel level) findTestBlocks(BlockPos pos, int radius, ServerLevel level) findTestContainingPos(BlockPos pos, int radius, ServerLevel level) private static BoundingBoxgetBoundingBoxAtGround(BlockPos pos, int radius, ServerLevel level) static RotationgetRotationForRotationSteps(int rotationSteps) static intgetRotationStepsForRotation(Rotation rotation) static BoundingBoxgetStructureBoundingBox(BlockPos pos, Vec3i offset, Rotation rotation) static BlockPosgetTransformedFarCorner(BlockPos pos, Vec3i offset, Rotation rotation) lookedAtTestPos(BlockPos pos, Entity entity, ServerLevel level)
-
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 id, BlockPos pos, Vec3i size, Rotation rotation, ServerLevel level) -
clearSpaceForStructure
-
getTransformedFarCorner
-
getStructureBoundingBox
-
findTestContainingPos
-
findNearestTest
-
findTestBlocks
-
getBoundingBoxAtGround
-
lookedAtTestPos
-
clearBlock
-
doesStructureContain
private static boolean doesStructureContain(BlockPos structureBlockPos, BlockPos posToTest, ServerLevel serverLevel)
-