类 StructureUtils
java.lang.Object
net.minecraft.gametest.framework.StructureUtils
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static void
clearBlock
(int p_127842_, BlockPos p_127843_, ServerLevel p_127844_) static void
clearSpaceForStructure
(BoundingBox p_127850_, ServerLevel p_127852_) static TestInstanceBlockEntity
createNewEmptyTest
(ResourceLocation p_397331_, BlockPos p_397076_, Vec3i p_397736_, Rotation p_397442_, ServerLevel p_397074_) private static boolean
doesStructureContain
(BlockPos p_127868_, BlockPos p_127869_, ServerLevel p_127870_) findNearestTest
(BlockPos p_397163_, int p_397842_, ServerLevel p_397581_) findTestBlocks
(BlockPos p_127911_, int p_127912_, ServerLevel p_127913_) findTestContainingPos
(BlockPos p_397180_, int p_397344_, ServerLevel p_397768_) static Rotation
getRotationForRotationSteps
(int p_127836_) static int
getRotationStepsForRotation
(Rotation p_177752_) static BoundingBox
getStructureBoundingBox
(BlockPos p_177761_, Vec3i p_177762_, Rotation p_177763_) static BlockPos
getTransformedFarCorner
(BlockPos p_308915_, Vec3i p_309132_, Rotation p_308895_) lookedAtTestPos
(BlockPos p_397600_, Entity p_397674_, ServerLevel p_397378_)
-
字段详细资料
-
DEFAULT_Y_SEARCH_RADIUS
public static final int DEFAULT_Y_SEARCH_RADIUS- 另请参阅:
-
DEFAULT_TEST_STRUCTURES_DIR
- 另请参阅:
-
testStructuresDir
-
-
构造器详细资料
-
StructureUtils
public StructureUtils()
-
-
方法详细资料
-
getRotationForRotationSteps
-
getRotationStepsForRotation
-
createNewEmptyTest
public static TestInstanceBlockEntity createNewEmptyTest(ResourceLocation p_397331_, BlockPos p_397076_, Vec3i p_397736_, Rotation p_397442_, ServerLevel p_397074_) -
clearSpaceForStructure
-
getTransformedFarCorner
-
getStructureBoundingBox
public static BoundingBox getStructureBoundingBox(BlockPos p_177761_, Vec3i p_177762_, Rotation p_177763_) -
findTestContainingPos
public static Optional<BlockPos> findTestContainingPos(BlockPos p_397180_, int p_397344_, ServerLevel p_397768_) -
findNearestTest
public static Optional<BlockPos> findNearestTest(BlockPos p_397163_, int p_397842_, ServerLevel p_397581_) -
findTestBlocks
public static Stream<BlockPos> findTestBlocks(BlockPos p_127911_, int p_127912_, ServerLevel p_127913_) -
lookedAtTestPos
public static Stream<BlockPos> lookedAtTestPos(BlockPos p_397600_, Entity p_397674_, ServerLevel p_397378_) -
clearBlock
-
doesStructureContain
private static boolean doesStructureContain(BlockPos p_127868_, BlockPos p_127869_, ServerLevel p_127870_)
-