Package net.minecraft.test
Class StructureHelper
- java.lang.Object
-
- net.minecraft.test.StructureHelper
-
public class StructureHelper extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
testStructuresDir
-
Constructor Summary
Constructors Constructor Description StructureHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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(java.lang.String p_229603_0_, BlockPos p_229603_1_, BlockPos p_229603_2_, Rotation p_229603_3_, ServerWorld p_229603_4_)
private static StructureBlockTileEntity
createStructureBlock(java.lang.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_)
static java.util.Optional<BlockPos>
findStructureBlockContainingPos(BlockPos p_229596_0_, int p_229596_1_, ServerWorld p_229596_2_)
static java.util.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(java.lang.String p_229605_0_, ServerWorld p_229605_1_)
static StructureBlockTileEntity
spawnStructure(java.lang.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(java.nio.file.Path p_229606_0_)
-
-
-
Method Detail
-
getRotationForRotationSteps
public static Rotation getRotationForRotationSteps(int p_240562_0_)
-
getStructureBounds
public static AxisAlignedBB getStructureBounds(StructureBlockTileEntity p_229594_0_)
-
getStructureBoundingBox
public static MutableBoundingBox getStructureBoundingBox(StructureBlockTileEntity p_240568_0_)
-
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(java.lang.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(java.lang.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
private static void forceLoadChunks(BlockPos p_229608_0_, ServerWorld p_229608_1_)
-
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 java.util.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 java.util.Collection<BlockPos> findStructureBlocks(BlockPos p_229609_0_, int p_229609_1_, ServerWorld p_229609_2_)
-
getStructureTemplate
private static Template getStructureTemplate(java.lang.String p_229605_0_, ServerWorld p_229605_1_)
-
createStructureBlock
private static StructureBlockTileEntity createStructureBlock(java.lang.String p_240566_0_, BlockPos p_240566_1_, Rotation p_240566_2_, ServerWorld p_240566_3_, boolean p_240566_4_)
-
tryLoadStructure
@Nullable private static CompoundNBT tryLoadStructure(java.nio.file.Path p_229606_0_)
-
clearBlock
private static void clearBlock(int p_229591_0_, BlockPos p_229591_1_, ServerWorld p_229591_2_)
-
doesStructureContain
private static boolean doesStructureContain(BlockPos p_229599_0_, BlockPos p_229599_1_, ServerWorld p_229599_2_)
-
-