net.minecraft.gametest.framework

public class StructureUtils

sb
net.minecraft.gametest.framework.StructureUtils
net.minecraft.class_4525
net.minecraft.test.StructureTestUtil
net.minecraft.src.C_4900_
net.minecraft.gametest.framework.GameTestHarnessStructures

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
c
LOGGER
field_27813
LOGGER
f_177742_
public static final String
a
DEFAULT_TEST_STRUCTURES_DIR
field_33173
TEST_STRUCTURES_DIRECTORY_NAME
f_177741_
public static String
b
testStructuresDir
field_20579
testStructuresDirectoryName
f_127833_

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static Rotation
a(int arg0)
getRotationForRotationSteps(int arg0)
method_29408(int arg0)
getRotation(int steps)
m_127835_(int p_127836_)
public static int
a(ddc arg0)
getRotationStepsForRotation(Rotation arg0)
method_36105(class_2470 arg0)
getRotationSteps(BlockRotation rotation)
m_177751_(C_1886_ p_177752_)
public static AABB
a(dij arg0)
getStructureBounds(StructureBlockEntity arg0)
method_22242(class_2633 arg0)
getStructureBoundingBox(StructureBlockBlockEntity structureBlockEntity)
m_127847_(C_2029_ p_127848_)
public static BoundingBox
b(dij arg0)
getStructureBoundingBox(StructureBlockEntity arg0)
method_29410(class_2633 arg0)
getStructureBlockBox(StructureBlockBlockEntity structureBlockEntity)
m_127904_(C_2029_ p_127905_)
public static BlockPos
c(dij arg0)
getStructureOrigin(StructureBlockEntity arg0)
method_54849(class_2633 arg0)
getStructureBlockPos(StructureBlockBlockEntity structureBlockEntity)
m_304927_(C_2029_ p_311311_)
public static void
a(hx arg0, hx arg1, ddc arg2, and arg3)
addCommandBlockAndButtonToStartTest(BlockPos arg0, BlockPos arg1, Rotation arg2, ServerLevel arg3)
method_22248(class_2338 arg0, class_2338 arg1, class_2470 arg2, class_3218 arg3)
placeStartButton(BlockPos pos, BlockPos relativePos, BlockRotation rotation, ServerWorld world)
m_127875_(C_4675_ p_127876_, C_4675_ p_127877_, C_1886_ p_127878_, C_12_ p_127879_)
public static void
a(String arg0, hx arg1, jb arg2, ddc arg3, and arg4)
createNewEmptyStructureBlock(String arg0, BlockPos arg1, Vec3i arg2, Rotation arg3, ServerLevel arg4)
method_22251(String arg0, class_2338 arg1, class_2382 arg2, class_2470 arg3, class_3218 arg4)
createTestArea(String testName, BlockPos pos, Vec3i relativePos, BlockRotation rotation, ServerWorld world)
m_177764_(String p_177765_, C_4675_ p_177766_, C_4713_ p_177767_, C_1886_ p_177768_, C_12_ p_177769_)
public static StructureBlockEntity
a(ro arg0, hx arg1, ddc arg2, and arg3)
prepareTestStructure(GameTestInfo arg0, BlockPos arg1, Rotation arg2, ServerLevel arg3)
method_54903(class_4517 arg0, class_2338 arg1, class_2470 arg2, class_3218 arg3)
initStructure(GameTestState state, BlockPos pos, BlockRotation rotation, ServerWorld world)
m_305479_(C_4889_ p_311701_, C_4675_ p_311042_, C_1886_ p_310584_, C_12_ p_312330_)
private static void
b(dyy arg0, and arg1)
forceLoadChunks(BoundingBox arg0, ServerLevel arg1)
method_22256(class_3341 arg0, class_3218 arg1)
forceLoadNearbyChunks(BlockBox box, ServerWorld world)
m_127857_(C_2478_ p_312219_, C_12_ p_127859_)
public static void
a(dyy arg0, and arg1)
clearSpaceForStructure(BoundingBox arg0, ServerLevel arg1)
method_22246(class_3341 arg0, class_3218 arg1)
clearArea(BlockBox area, ServerWorld world)
m_127849_(C_2478_ p_127850_, C_12_ p_127852_)
public static BlockPos
a(hx arg0, jb arg1, ddc arg2)
getTransformedFarCorner(BlockPos arg0, Vec3i arg1, Rotation arg2)
method_54847(class_2338 arg0, class_2382 arg1, class_2470 arg2)
getStructureBlockBoxCornerPos(BlockPos pos, Vec3i size, BlockRotation rotation)
m_305507_(C_4675_ p_310098_, C_4713_ p_312132_, C_1886_ p_309587_)
public static BoundingBox
b(hx arg0, jb arg1, ddc arg2)
getStructureBoundingBox(BlockPos arg0, Vec3i arg1, Rotation arg2)
method_29409(class_2338 arg0, class_2382 arg1, class_2470 arg2)
getStructureBlockBox(BlockPos pos, Vec3i relativePos, BlockRotation rotation)
m_177760_(C_4675_ p_177761_, C_4713_ p_177762_, C_1886_ p_177763_)
public static Optional<BlockPos>
a(hx arg0, int arg1, and arg2)
findStructureBlockContainingPos(BlockPos arg0, int arg1, ServerLevel arg2)
method_22244(class_2338 arg0, int arg1, class_3218 arg2)
findContainingStructureBlock(BlockPos pos, int radius, ServerWorld world)
m_127853_(C_4675_ p_127854_, int p_127855_, C_12_ p_127856_)
public static BlockPos
b(hx arg0, int arg1, and arg2)
findNearestStructureBlock(BlockPos arg0, int arg1, ServerLevel arg2)
method_22255(class_2338 arg0, int arg1, class_3218 arg2)
findNearestStructureBlock(BlockPos pos, int radius, ServerWorld world)
m_127906_(C_4675_ p_127907_, int p_127908_, C_12_ p_127909_)
public static Collection<BlockPos>
c(hx arg0, int arg1, and arg2)
findStructureBlocks(BlockPos arg0, int arg1, ServerLevel arg2)
method_22258(class_2338 arg0, int arg1, class_3218 arg2)
findStructureBlocks(BlockPos pos, int radius, ServerWorld world)
m_127910_(C_4675_ p_127911_, int p_127912_, C_12_ p_127913_)
private static StructureBlockEntity
b(ro arg0, hx arg1, ddc arg2, and arg3)
createStructureBlock(GameTestInfo arg0, BlockPos arg1, Rotation arg2, ServerLevel arg3)
method_22252(class_4517 arg0, class_2338 arg1, class_2470 arg2, class_3218 arg3)
placeStructureTemplate(GameTestState state, BlockPos pos, BlockRotation rotation, ServerWorld world)
m_127890_(C_4889_ p_309598_, C_4675_ p_127892_, C_1886_ p_127893_, C_12_ p_127894_)
private static void
a(int arg0, hx arg1, and arg2)
clearBlock(int arg0, BlockPos arg1, ServerLevel arg2)
method_22368(int arg0, class_2338 arg1, class_3218 arg2)
resetBlock(int altitude, BlockPos pos, ServerWorld world)
m_127841_(int p_127842_, C_4675_ p_127843_, C_12_ p_127844_)
private static boolean
a(hx arg0, hx arg1, and arg2)
doesStructureContain(BlockPos arg0, BlockPos arg1, ServerLevel arg2)
method_22247(class_2338 arg0, class_2338 arg1, class_3218 arg2)
isInStructureBounds(BlockPos structureBlockPos, BlockPos pos, ServerWorld world)
m_127867_(C_4675_ p_127868_, C_4675_ p_127869_, C_12_ p_127870_)