Package net.minecraft.test
Class StructureTestUtil
java.lang.Object
net.minecraft.test.StructureTestUtil
- Mappings:
Namespace Name named net/minecraft/test/StructureTestUtil
intermediary net/minecraft/class_4525
official ue
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
clearArea
(BlockBox area, ServerWorld world) static void
clearBarrierBox
(Box box, ServerWorld world) private static BlockBox
createBox
(BlockPos pos, int radius, ServerWorld world) static void
createTestArea
(String testName, BlockPos pos, Vec3i relativePos, BlockRotation rotation, ServerWorld world) findContainingStructureBlock
(BlockPos pos, int radius, ServerWorld world) findNearestStructureBlock
(BlockPos pos, int radius, ServerWorld world) findStructureBlocks
(BlockPos pos, int radius, ServerWorld world) findStructureBlocks
(BlockPos pos, int radius, ServerWorld world, String templateName) findTargetedStructureBlock
(BlockPos pos, Entity entity, ServerWorld world) private static void
forceLoadNearbyChunks
(BlockBox box, ServerWorld world) static BlockRotation
getRotation
(int steps) static int
getRotationSteps
(BlockRotation rotation) static BlockBox
getStructureBlockBox
(StructureBlockBlockEntity structureBlockEntity) static BlockBox
getStructureBlockBox
(BlockPos pos, Vec3i relativePos, BlockRotation rotation) static BlockPos
getStructureBlockBoxCornerPos
(BlockPos pos, Vec3i size, BlockRotation rotation) static BlockPos
getStructureBlockPos
(StructureBlockBlockEntity structureBlockEntity) static Box
getStructureBoundingBox
(StructureBlockBlockEntity structureBlockEntity) static StructureBlockBlockEntity
initStructure
(GameTestState state, BlockPos pos, BlockRotation rotation, ServerWorld world) private static boolean
isInStructureBounds
(BlockPos structureBlockPos, BlockPos pos, ServerWorld world) static void
placeBarrierBox
(Box box, ServerWorld world, boolean noSkyAccess) static void
placeStartButton
(BlockPos pos, BlockPos relativePos, BlockRotation rotation, ServerWorld world) private static StructureBlockBlockEntity
placeStructureTemplate
(GameTestState state, BlockPos pos, BlockRotation rotation, ServerWorld world) private static void
resetBlock
(int altitude, BlockPos pos, ServerWorld world)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/test/StructureTestUtil;LOGGER:Lorg/slf4j/Logger;
intermediary field_27813
Lnet/minecraft/class_4525;field_27813:Lorg/slf4j/Logger;
official d
Lue;d:Lorg/slf4j/Logger;
-
field_51468
public static final int field_51468- See Also:
- Mappings:
Namespace Name Mixin selector named field_51468
Lnet/minecraft/test/StructureTestUtil;field_51468:I
intermediary field_51468
Lnet/minecraft/class_4525;field_51468:I
official a
Lue;a:I
-
TEST_STRUCTURES_DIRECTORY_NAME
- See Also:
- Mappings:
Namespace Name Mixin selector named TEST_STRUCTURES_DIRECTORY_NAME
Lnet/minecraft/test/StructureTestUtil;TEST_STRUCTURES_DIRECTORY_NAME:Ljava/lang/String;
intermediary field_33173
Lnet/minecraft/class_4525;field_33173:Ljava/lang/String;
official b
Lue;b:Ljava/lang/String;
-
testStructuresDirectoryName
- Mappings:
Namespace Name Mixin selector named testStructuresDirectoryName
Lnet/minecraft/test/StructureTestUtil;testStructuresDirectoryName:Ljava/lang/String;
intermediary field_20579
Lnet/minecraft/class_4525;field_20579:Ljava/lang/String;
official c
Lue;c:Ljava/lang/String;
-
-
Constructor Details
-
StructureTestUtil
public StructureTestUtil()
-
-
Method Details
-
getRotation
- Mappings:
Namespace Name Mixin selector named getRotation
Lnet/minecraft/test/StructureTestUtil;getRotation(I)Lnet/minecraft/util/BlockRotation;
intermediary method_29408
Lnet/minecraft/class_4525;method_29408(I)Lnet/minecraft/class_2470;
official a
Lue;a(I)Ldlo;
-
getRotationSteps
- Mappings:
Namespace Name Mixin selector named getRotationSteps
Lnet/minecraft/test/StructureTestUtil;getRotationSteps(Lnet/minecraft/util/BlockRotation;)I
intermediary method_36105
Lnet/minecraft/class_4525;method_36105(Lnet/minecraft/class_2470;)I
official a
Lue;a(Ldlo;)I
-
getStructureBoundingBox
- Mappings:
Namespace Name Mixin selector named getStructureBoundingBox
Lnet/minecraft/test/StructureTestUtil;getStructureBoundingBox(Lnet/minecraft/block/entity/StructureBlockBlockEntity;)Lnet/minecraft/util/math/Box;
intermediary method_22242
Lnet/minecraft/class_4525;method_22242(Lnet/minecraft/class_2633;)Lnet/minecraft/class_238;
official a
Lue;a(Ldqy;)Levo;
-
getStructureBlockBox
- Mappings:
Namespace Name Mixin selector named getStructureBlockBox
Lnet/minecraft/test/StructureTestUtil;getStructureBlockBox(Lnet/minecraft/block/entity/StructureBlockBlockEntity;)Lnet/minecraft/util/math/BlockBox;
intermediary method_29410
Lnet/minecraft/class_4525;method_29410(Lnet/minecraft/class_2633;)Lnet/minecraft/class_3341;
official b
Lue;b(Ldqy;)Leie;
-
getStructureBlockPos
- Mappings:
Namespace Name Mixin selector named getStructureBlockPos
Lnet/minecraft/test/StructureTestUtil;getStructureBlockPos(Lnet/minecraft/block/entity/StructureBlockBlockEntity;)Lnet/minecraft/util/math/BlockPos;
intermediary method_54849
Lnet/minecraft/class_4525;method_54849(Lnet/minecraft/class_2633;)Lnet/minecraft/class_2338;
official c
Lue;c(Ldqy;)Liz;
-
placeStartButton
public static void placeStartButton(BlockPos pos, BlockPos relativePos, BlockRotation rotation, ServerWorld world) - Mappings:
Namespace Name Mixin selector named placeStartButton
Lnet/minecraft/test/StructureTestUtil;placeStartButton(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/BlockRotation;Lnet/minecraft/server/world/ServerWorld;)V
intermediary method_22248
Lnet/minecraft/class_4525;method_22248(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;Lnet/minecraft/class_2470;Lnet/minecraft/class_3218;)V
official a
Lue;a(Liz;Liz;Ldlo;Larf;)V
-
createTestArea
public static void createTestArea(String testName, BlockPos pos, Vec3i relativePos, BlockRotation rotation, ServerWorld world) - Mappings:
Namespace Name Mixin selector named createTestArea
Lnet/minecraft/test/StructureTestUtil;createTestArea(Ljava/lang/String;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Vec3i;Lnet/minecraft/util/BlockRotation;Lnet/minecraft/server/world/ServerWorld;)V
intermediary method_22251
Lnet/minecraft/class_4525;method_22251(Ljava/lang/String;Lnet/minecraft/class_2338;Lnet/minecraft/class_2382;Lnet/minecraft/class_2470;Lnet/minecraft/class_3218;)V
official a
Lue;a(Ljava/lang/String;Liz;Lkd;Ldlo;Larf;)V
-
initStructure
public static StructureBlockBlockEntity initStructure(GameTestState state, BlockPos pos, BlockRotation rotation, ServerWorld world) - Mappings:
Namespace Name Mixin selector named initStructure
Lnet/minecraft/test/StructureTestUtil;initStructure(Lnet/minecraft/test/GameTestState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/BlockRotation;Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/block/entity/StructureBlockBlockEntity;
intermediary method_54903
Lnet/minecraft/class_4525;method_54903(Lnet/minecraft/class_4517;Lnet/minecraft/class_2338;Lnet/minecraft/class_2470;Lnet/minecraft/class_3218;)Lnet/minecraft/class_2633;
official a
Lue;a(Lto;Liz;Ldlo;Larf;)Ldqy;
-
placeBarrierBox
- Mappings:
Namespace Name Mixin selector named placeBarrierBox
Lnet/minecraft/test/StructureTestUtil;placeBarrierBox(Lnet/minecraft/util/math/Box;Lnet/minecraft/server/world/ServerWorld;Z)V
intermediary method_57102
Lnet/minecraft/class_4525;method_57102(Lnet/minecraft/class_238;Lnet/minecraft/class_3218;Z)V
official a
Lue;a(Levo;Larf;Z)V
-
clearBarrierBox
- Mappings:
Namespace Name Mixin selector named clearBarrierBox
Lnet/minecraft/test/StructureTestUtil;clearBarrierBox(Lnet/minecraft/util/math/Box;Lnet/minecraft/server/world/ServerWorld;)V
intermediary method_57101
Lnet/minecraft/class_4525;method_57101(Lnet/minecraft/class_238;Lnet/minecraft/class_3218;)V
official a
Lue;a(Levo;Larf;)V
-
forceLoadNearbyChunks
- Mappings:
Namespace Name Mixin selector named forceLoadNearbyChunks
Lnet/minecraft/test/StructureTestUtil;forceLoadNearbyChunks(Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/server/world/ServerWorld;)V
intermediary method_22256
Lnet/minecraft/class_4525;method_22256(Lnet/minecraft/class_3341;Lnet/minecraft/class_3218;)V
official b
Lue;b(Leie;Larf;)V
-
clearArea
- Mappings:
Namespace Name Mixin selector named clearArea
Lnet/minecraft/test/StructureTestUtil;clearArea(Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/server/world/ServerWorld;)V
intermediary method_22246
Lnet/minecraft/class_4525;method_22246(Lnet/minecraft/class_3341;Lnet/minecraft/class_3218;)V
official a
Lue;a(Leie;Larf;)V
-
getStructureBlockBoxCornerPos
public static BlockPos getStructureBlockBoxCornerPos(BlockPos pos, Vec3i size, BlockRotation rotation) - Mappings:
Namespace Name Mixin selector named getStructureBlockBoxCornerPos
Lnet/minecraft/test/StructureTestUtil;getStructureBlockBoxCornerPos(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Vec3i;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/util/math/BlockPos;
intermediary method_54847
Lnet/minecraft/class_4525;method_54847(Lnet/minecraft/class_2338;Lnet/minecraft/class_2382;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2338;
official a
Lue;a(Liz;Lkd;Ldlo;)Liz;
-
getStructureBlockBox
public static BlockBox getStructureBlockBox(BlockPos pos, Vec3i relativePos, BlockRotation rotation) - Mappings:
Namespace Name Mixin selector named getStructureBlockBox
Lnet/minecraft/test/StructureTestUtil;getStructureBlockBox(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Vec3i;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/util/math/BlockBox;
intermediary method_29409
Lnet/minecraft/class_4525;method_29409(Lnet/minecraft/class_2338;Lnet/minecraft/class_2382;Lnet/minecraft/class_2470;)Lnet/minecraft/class_3341;
official b
Lue;b(Liz;Lkd;Ldlo;)Leie;
-
findContainingStructureBlock
public static Optional<BlockPos> findContainingStructureBlock(BlockPos pos, int radius, ServerWorld world) - Mappings:
Namespace Name Mixin selector named findContainingStructureBlock
Lnet/minecraft/test/StructureTestUtil;findContainingStructureBlock(Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/server/world/ServerWorld;)Ljava/util/Optional;
intermediary method_22244
Lnet/minecraft/class_4525;method_22244(Lnet/minecraft/class_2338;ILnet/minecraft/class_3218;)Ljava/util/Optional;
official a
Lue;a(Liz;ILarf;)Ljava/util/Optional;
-
findNearestStructureBlock
public static Optional<BlockPos> findNearestStructureBlock(BlockPos pos, int radius, ServerWorld world) - Mappings:
Namespace Name Mixin selector named findNearestStructureBlock
Lnet/minecraft/test/StructureTestUtil;findNearestStructureBlock(Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/server/world/ServerWorld;)Ljava/util/Optional;
intermediary method_22255
Lnet/minecraft/class_4525;method_22255(Lnet/minecraft/class_2338;ILnet/minecraft/class_3218;)Ljava/util/Optional;
official b
Lue;b(Liz;ILarf;)Ljava/util/Optional;
-
findStructureBlocks
public static Stream<BlockPos> findStructureBlocks(BlockPos pos, int radius, ServerWorld world, String templateName) - Mappings:
Namespace Name Mixin selector named findStructureBlocks
Lnet/minecraft/test/StructureTestUtil;findStructureBlocks(Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/server/world/ServerWorld;Ljava/lang/String;)Ljava/util/stream/Stream;
intermediary method_59782
Lnet/minecraft/class_4525;method_59782(Lnet/minecraft/class_2338;ILnet/minecraft/class_3218;Ljava/lang/String;)Ljava/util/stream/Stream;
official a
Lue;a(Liz;ILarf;Ljava/lang/String;)Ljava/util/stream/Stream;
-
findStructureBlocks
- Mappings:
Namespace Name Mixin selector named findStructureBlocks
Lnet/minecraft/test/StructureTestUtil;findStructureBlocks(Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/server/world/ServerWorld;)Ljava/util/stream/Stream;
intermediary method_22258
Lnet/minecraft/class_4525;method_22258(Lnet/minecraft/class_2338;ILnet/minecraft/class_3218;)Ljava/util/stream/Stream;
official c
Lue;c(Liz;ILarf;)Ljava/util/stream/Stream;
-
placeStructureTemplate
private static StructureBlockBlockEntity placeStructureTemplate(GameTestState state, BlockPos pos, BlockRotation rotation, ServerWorld world) - Mappings:
Namespace Name Mixin selector named placeStructureTemplate
Lnet/minecraft/test/StructureTestUtil;placeStructureTemplate(Lnet/minecraft/test/GameTestState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/BlockRotation;Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/block/entity/StructureBlockBlockEntity;
intermediary method_22252
Lnet/minecraft/class_4525;method_22252(Lnet/minecraft/class_4517;Lnet/minecraft/class_2338;Lnet/minecraft/class_2470;Lnet/minecraft/class_3218;)Lnet/minecraft/class_2633;
official b
Lue;b(Lto;Liz;Ldlo;Larf;)Ldqy;
-
createBox
- Mappings:
Namespace Name Mixin selector named createBox
Lnet/minecraft/test/StructureTestUtil;createBox(Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/util/math/BlockBox;
intermediary method_59785
Lnet/minecraft/class_4525;method_59785(Lnet/minecraft/class_2338;ILnet/minecraft/class_3218;)Lnet/minecraft/class_3341;
official d
Lue;d(Liz;ILarf;)Leie;
-
findTargetedStructureBlock
public static Stream<BlockPos> findTargetedStructureBlock(BlockPos pos, Entity entity, ServerWorld world) - Mappings:
Namespace Name Mixin selector named findTargetedStructureBlock
Lnet/minecraft/test/StructureTestUtil;findTargetedStructureBlock(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;Lnet/minecraft/server/world/ServerWorld;)Ljava/util/stream/Stream;
intermediary method_56252
Lnet/minecraft/class_4525;method_56252(Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;Lnet/minecraft/class_3218;)Ljava/util/stream/Stream;
official a
Lue;a(Liz;Lbsw;Larf;)Ljava/util/stream/Stream;
-
resetBlock
- Mappings:
Namespace Name Mixin selector named resetBlock
Lnet/minecraft/test/StructureTestUtil;resetBlock(ILnet/minecraft/util/math/BlockPos;Lnet/minecraft/server/world/ServerWorld;)V
intermediary method_22368
Lnet/minecraft/class_4525;method_22368(ILnet/minecraft/class_2338;Lnet/minecraft/class_3218;)V
official a
Lue;a(ILiz;Larf;)V
-
isInStructureBounds
private static boolean isInStructureBounds(BlockPos structureBlockPos, BlockPos pos, ServerWorld world) - Mappings:
Namespace Name Mixin selector named isInStructureBounds
Lnet/minecraft/test/StructureTestUtil;isInStructureBounds(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/server/world/ServerWorld;)Z
intermediary method_22247
Lnet/minecraft/class_4525;method_22247(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;Lnet/minecraft/class_3218;)Z
official a
Lue;a(Liz;Liz;Larf;)Z
-