Package net.minecraft.test
Class StructureHelper
java.lang.Object
net.minecraft.test.StructureHelper
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addCommandBlockAndButtonToStartTest
(BlockPos p_240564_0_, BlockPos p_240564_1_, Rotation p_240564_2_, ServerWorld p_240564_3_) private static void
clearBlock
(int p_229591_0_, BlockPos p_229591_1_, ServerWorld p_229591_2_) static void
clearSpaceForStructure
(MutableBoundingBox p_229595_0_, int p_229595_1_, ServerWorld p_229595_2_) static void
createNewEmptyStructureBlock
(String p_229603_0_, BlockPos p_229603_1_, BlockPos p_229603_2_, Rotation p_229603_3_, ServerWorld p_229603_4_) private static StructureBlockTileEntity
createStructureBlock
(String p_240566_0_, BlockPos p_240566_1_, Rotation p_240566_2_, ServerWorld p_240566_3_, boolean p_240566_4_) private static boolean
doesStructureContain
(BlockPos p_229599_0_, BlockPos p_229599_1_, ServerWorld p_229599_2_) static BlockPos
findNearestStructureBlock
(BlockPos p_229607_0_, int p_229607_1_, ServerWorld p_229607_2_) findStructureBlockContainingPos
(BlockPos p_229596_0_, int p_229596_1_, ServerWorld p_229596_2_) static Collection<BlockPos>
findStructureBlocks
(BlockPos p_229609_0_, int p_229609_1_, ServerWorld p_229609_2_) private static void
forceLoadChunks
(BlockPos p_229608_0_, ServerWorld p_229608_1_) static Rotation
getRotationForRotationSteps
(int p_240562_0_) static MutableBoundingBox
getStructureBoundingBox
(StructureBlockTileEntity p_240568_0_) static MutableBoundingBox
getStructureBoundingBox
(BlockPos p_229598_0_, BlockPos p_229598_1_, Rotation p_229598_2_) static AxisAlignedBB
getStructureBounds
(StructureBlockTileEntity p_229594_0_) private static Template
getStructureTemplate
(String p_229605_0_, ServerWorld p_229605_1_) static StructureBlockTileEntity
spawnStructure
(String p_240565_0_, BlockPos p_240565_1_, Rotation p_240565_2_, int p_240565_3_, ServerWorld p_240565_4_, boolean p_240565_5_) private static CompoundNBT
tryLoadStructure
(Path p_229606_0_)
-
Field Details
-
testStructuresDir
-
-
Constructor Details
-
StructureHelper
public StructureHelper()
-
-
Method Details
-
getRotationForRotationSteps
-
getStructureBounds
-
getStructureBoundingBox
-
addCommandBlockAndButtonToStartTest
public static void addCommandBlockAndButtonToStartTest(BlockPos p_240564_0_, BlockPos p_240564_1_, Rotation p_240564_2_, ServerWorld p_240564_3_) -
createNewEmptyStructureBlock
public static void createNewEmptyStructureBlock(String p_229603_0_, BlockPos p_229603_1_, BlockPos p_229603_2_, Rotation p_229603_3_, ServerWorld p_229603_4_) -
spawnStructure
public static StructureBlockTileEntity spawnStructure(String p_240565_0_, BlockPos p_240565_1_, Rotation p_240565_2_, int p_240565_3_, ServerWorld p_240565_4_, boolean p_240565_5_) -
forceLoadChunks
-
clearSpaceForStructure
public static void clearSpaceForStructure(MutableBoundingBox p_229595_0_, int p_229595_1_, ServerWorld p_229595_2_) -
getStructureBoundingBox
public static MutableBoundingBox getStructureBoundingBox(BlockPos p_229598_0_, BlockPos p_229598_1_, Rotation p_229598_2_) -
findStructureBlockContainingPos
public static Optional<BlockPos> findStructureBlockContainingPos(BlockPos p_229596_0_, int p_229596_1_, ServerWorld p_229596_2_) -
findNearestStructureBlock
@Nullable public static BlockPos findNearestStructureBlock(BlockPos p_229607_0_, int p_229607_1_, ServerWorld p_229607_2_) -
findStructureBlocks
public static Collection<BlockPos> findStructureBlocks(BlockPos p_229609_0_, int p_229609_1_, ServerWorld p_229609_2_) -
getStructureTemplate
-
createStructureBlock
private static StructureBlockTileEntity createStructureBlock(String p_240566_0_, BlockPos p_240566_1_, Rotation p_240566_2_, ServerWorld p_240566_3_, boolean p_240566_4_) -
tryLoadStructure
-
clearBlock
-
doesStructureContain
private static boolean doesStructureContain(BlockPos p_229599_0_, BlockPos p_229599_1_, ServerWorld p_229599_2_)
-