net.minecraft.gametest.framework

public class StructureUtils

tn
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
d
LOGGER
field_27813
LOGGER
f_177742_
public static final int
a
DEFAULT_Y_SEARCH_RADIUS
field_51468
field_51468
f_316717_
public static final String
b
DEFAULT_TEST_STRUCTURES_DIR
field_33173
TEST_STRUCTURES_DIRECTORY_NAME
f_177741_
public static String
c
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(dmm arg0)
getRotationStepsForRotation(Rotation arg0)
method_36105(class_2470 arg0)
getRotationSteps(BlockRotation rotation)
m_177751_(C_1886_ p_177752_)
public static AABB
a(drx arg0)
getStructureBounds(StructureBlockEntity arg0)
method_22242(class_2633 arg0)
getStructureBoundingBox(StructureBlockBlockEntity structureBlockEntity)
m_127847_(C_2029_ p_127848_)
public static BoundingBox
b(drx arg0)
getStructureBoundingBox(StructureBlockEntity arg0)
method_29410(class_2633 arg0)
getStructureBlockBox(StructureBlockBlockEntity structureBlockEntity)
m_127904_(C_2029_ p_127905_)
public static BlockPos
c(drx arg0)
getStructureOrigin(StructureBlockEntity arg0)
method_54849(class_2633 arg0)
getStructureBlockPos(StructureBlockBlockEntity structureBlockEntity)
m_304927_(C_2029_ p_311311_)
public static void
a(jd arg0, jd arg1, dmm arg2, aqu 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, jd arg1, kh arg2, dmm arg3, aqu 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(sx arg0, jd arg1, dmm arg2, aqu 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_)
public static void
a(ewx arg0, aqu arg1, boolean arg2)
encaseStructure(AABB arg0, ServerLevel arg1, boolean arg2)
method_57102(class_238 arg0, class_3218 arg1, boolean arg2)
placeBarrierBox(Box box, ServerWorld world, boolean noSkyAccess)
m_320357_(C_3040_ p_330422_, C_12_ p_331249_, boolean p_328180_)
public static void
a(ewx arg0, aqu arg1)
removeBarriers(AABB arg0, ServerLevel arg1)
method_57101(class_238 arg0, class_3218 arg1)
clearBarrierBox(Box box, ServerWorld world)
m_319541_(C_3040_ p_336061_, C_12_ p_334551_)
private static void
b(ejj arg0, aqu 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(ejj arg0, aqu 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(jd arg0, kh arg1, dmm 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(jd arg0, kh arg1, dmm 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(jd arg0, int arg1, aqu 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 Optional<BlockPos>
b(jd arg0, int arg1, aqu 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 Stream<BlockPos>
a(jd arg0, int arg1, aqu arg2, String arg3)
findStructureByTestFunction(BlockPos arg0, int arg1, ServerLevel arg2, String arg3)
method_59782(class_2338 arg0, int arg1, class_3218 arg2, String arg3)
findStructureBlocks(BlockPos pos, int radius, ServerWorld world, String templateName)
m_322152_(C_4675_ p_333272_, int p_332388_, C_12_ p_333747_, String p_332891_)
public static Stream<BlockPos>
c(jd arg0, int arg1, aqu 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(sx arg0, jd arg1, dmm arg2, aqu 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 BoundingBox
d(jd arg0, int arg1, aqu arg2)
getBoundingBoxAtGround(BlockPos arg0, int arg1, ServerLevel arg2)
method_59785(class_2338 arg0, int arg1, class_3218 arg2)
createBox(BlockPos pos, int radius, ServerWorld world)
m_319242_(C_4675_ p_329849_, int p_332427_, C_12_ p_328726_)
public static Stream<BlockPos>
a(jd arg0, bsr arg1, aqu arg2)
lookedAtStructureBlockPos(BlockPos arg0, Entity arg1, ServerLevel arg2)
method_56252(class_2338 arg0, class_1297 arg1, class_3218 arg2)
findTargetedStructureBlock(BlockPos pos, Entity entity, ServerWorld world)
m_320514_(C_4675_ p_333762_, C_507_ p_333965_, C_12_ p_336162_)
private static void
a(int arg0, jd arg1, aqu 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(jd arg0, jd arg1, aqu 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_)