net.minecraft.test

public class TestInstanceUtil

net.minecraft.gametest.framework.StructureUtils
net.minecraft.gametest.framework.StructureUtils
net.minecraft.class_4525
net.minecraft.test.TestInstanceUtil

Field summary

Modifier and TypeField
public static final int
DEFAULT_Y_SEARCH_RADIUS
DEFAULT_Y_SEARCH_RADIUS
field_51468
field_51468
public static Path
testStructuresTargetDir
testStructuresTargetDir
field_1_1514
resourcesPath
public static Path
testStructuresSourceDir
testStructuresSourceDir
field_1_1513
structureSnbtPath

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static BlockRotation
getRotationForRotationSteps(int rotationSteps)
getRotationForRotationSteps(int rotationSteps)
method_29408(int arg0)
getRotation(int steps)
public static int
getRotationStepsForRotation(Rotation rotation)
getRotationStepsForRotation(Rotation rotation)
method_36105(class_2470 arg0)
getRotationSteps(BlockRotation rotation)
public static TestInstanceBlockEntity
createNewEmptyTest(Identifier id, BlockPos structurePos, Vec3i size, Rotation rotation, ServerLevel level)
createNewEmptyTest(Identifier id, BlockPos structurePos, Vec3i size, Rotation rotation, ServerLevel level)
method_66992(class_2960 arg0, class_2338 arg1, class_2382 arg2, class_2470 arg3, class_3218 arg4)
createTestInstanceBlockEntity(Identifier testInstanceId, BlockPos pos, Vec3i size, BlockRotation rotation, ServerWorld world)
public static void
clearSpaceForStructure(BoundingBox structureBoundingBox, ServerLevel level)
clearSpaceForStructure(BoundingBox structureBoundingBox, ServerLevel level)
method_22246(class_3341 arg0, class_3218 arg1)
clearArea(BlockBox area, ServerWorld world)
public static BlockPos
getTransformedFarCorner(BlockPos structurePosition, Vec3i size, Rotation rotation)
getTransformedFarCorner(BlockPos structurePosition, Vec3i size, Rotation rotation)
method_54847(class_2338 arg0, class_2382 arg1, class_2470 arg2)
getTestInstanceBlockBoxCornerPos(BlockPos pos, Vec3i size, BlockRotation rotation)
public static BlockBox
getStructureBoundingBox(BlockPos northWestCorner, Vec3i size, Rotation rotation)
getStructureBoundingBox(BlockPos northWestCorner, Vec3i size, Rotation rotation)
method_29409(class_2338 arg0, class_2382 arg1, class_2470 arg2)
getTestInstanceBlockBox(BlockPos pos, Vec3i relativePos, BlockRotation rotation)
public static Optional<BlockPos>
findTestContainingPos(BlockPos pos, int searchRadius, ServerLevel level)
findTestContainingPos(BlockPos pos, int searchRadius, ServerLevel level)
method_22244(class_2338 arg0, int arg1, class_3218 arg2)
findContainingTestInstanceBlock(BlockPos pos, int radius, ServerWorld world)
public static Optional<BlockPos>
findNearestTest(BlockPos relativeToPos, int searchRadius, ServerLevel level)
findNearestTest(BlockPos relativeToPos, int searchRadius, ServerLevel level)
method_22255(class_2338 arg0, int arg1, class_3218 arg2)
findNearestTestInstanceBlock(BlockPos pos, int radius, ServerWorld world)
public static Stream<BlockPos>
findTestBlocks(BlockPos centerPos, int searchRadius, ServerLevel level)
findTestBlocks(BlockPos centerPos, int searchRadius, ServerLevel level)
method_22258(class_2338 arg0, int arg1, class_3218 arg2)
findTestInstanceBlocks(BlockPos pos, int radius, ServerWorld world)
public static Stream<BlockPos>
lookedAtTestPos(BlockPos pos, Entity camera, ServerLevel level)
lookedAtTestPos(BlockPos pos, Entity camera, ServerLevel level)
method_56252(class_2338 arg0, class_1297 arg1, class_3218 arg2)
findTargetedTestInstanceBlock(BlockPos pos, Entity entity, ServerWorld world)
private static void
clearBlock(int airIfAboveThisY, BlockPos pos, ServerLevel level)
clearBlock(int airIfAboveThisY, BlockPos pos, ServerLevel level)
method_22368(int arg0, class_2338 arg1, class_3218 arg2)
resetBlock(int altitude, BlockPos pos, ServerWorld world)
private static boolean
doesStructureContain(BlockPos testInstanceBlockPos, BlockPos pos, ServerLevel level)
doesStructureContain(BlockPos testInstanceBlockPos, BlockPos pos, ServerLevel level)
method_22247(class_2338 arg0, class_2338 arg1, class_3218 arg2)
isInBounds(BlockPos testInstanceBlockPos, BlockPos pos, ServerWorld world)