Package net.minecraft.test
Class StructureTestUtil
java.lang.Object
net.minecraft.test.StructureTestUtil
- Mappings:
Namespace Name official sb
intermediary net/minecraft/class_4525
named net/minecraft/test/StructureTestUtil
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
clearArea
(BlockBox area, 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) static Collection<BlockPos>
findStructureBlocks
(BlockPos pos, int radius, 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
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 official c
Lsb;c:Lorg/slf4j/Logger;
intermediary field_27813
Lnet/minecraft/class_4525;field_27813:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/test/StructureTestUtil;LOGGER:Lorg/slf4j/Logger;
-
TEST_STRUCTURES_DIRECTORY_NAME
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lsb;a:Ljava/lang/String;
intermediary field_33173
Lnet/minecraft/class_4525;field_33173:Ljava/lang/String;
named TEST_STRUCTURES_DIRECTORY_NAME
Lnet/minecraft/test/StructureTestUtil;TEST_STRUCTURES_DIRECTORY_NAME:Ljava/lang/String;
-
testStructuresDirectoryName
- Mappings:
Namespace Name Mixin selector official b
Lsb;b:Ljava/lang/String;
intermediary field_20579
Lnet/minecraft/class_4525;field_20579:Ljava/lang/String;
named testStructuresDirectoryName
Lnet/minecraft/test/StructureTestUtil;testStructuresDirectoryName:Ljava/lang/String;
-
-
Constructor Details
-
StructureTestUtil
public StructureTestUtil()
-
-
Method Details
-
getRotation
- Mappings:
Namespace Name Mixin selector official a
Lsb;a(I)Lddc;
intermediary method_29408
Lnet/minecraft/class_4525;method_29408(I)Lnet/minecraft/class_2470;
named getRotation
Lnet/minecraft/test/StructureTestUtil;getRotation(I)Lnet/minecraft/util/BlockRotation;
-
getRotationSteps
- Mappings:
Namespace Name Mixin selector official a
Lsb;a(Lddc;)I
intermediary method_36105
Lnet/minecraft/class_4525;method_36105(Lnet/minecraft/class_2470;)I
named getRotationSteps
Lnet/minecraft/test/StructureTestUtil;getRotationSteps(Lnet/minecraft/util/BlockRotation;)I
-
getStructureBoundingBox
- Mappings:
Namespace Name Mixin selector official a
Lsb;a(Ldij;)Lelo;
intermediary method_22242
Lnet/minecraft/class_4525;method_22242(Lnet/minecraft/class_2633;)Lnet/minecraft/class_238;
named getStructureBoundingBox
Lnet/minecraft/test/StructureTestUtil;getStructureBoundingBox(Lnet/minecraft/block/entity/StructureBlockBlockEntity;)Lnet/minecraft/util/math/Box;
-
getStructureBlockBox
- Mappings:
Namespace Name Mixin selector official b
Lsb;b(Ldij;)Ldyy;
intermediary method_29410
Lnet/minecraft/class_4525;method_29410(Lnet/minecraft/class_2633;)Lnet/minecraft/class_3341;
named getStructureBlockBox
Lnet/minecraft/test/StructureTestUtil;getStructureBlockBox(Lnet/minecraft/block/entity/StructureBlockBlockEntity;)Lnet/minecraft/util/math/BlockBox;
-
getStructureBlockPos
- Mappings:
Namespace Name Mixin selector official c
Lsb;c(Ldij;)Lhx;
intermediary method_54849
Lnet/minecraft/class_4525;method_54849(Lnet/minecraft/class_2633;)Lnet/minecraft/class_2338;
named getStructureBlockPos
Lnet/minecraft/test/StructureTestUtil;getStructureBlockPos(Lnet/minecraft/block/entity/StructureBlockBlockEntity;)Lnet/minecraft/util/math/BlockPos;
-
placeStartButton
public static void placeStartButton(BlockPos pos, BlockPos relativePos, BlockRotation rotation, ServerWorld world) - Mappings:
Namespace Name Mixin selector official a
Lsb;a(Lhx;Lhx;Lddc;Land;)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
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
-
createTestArea
public static void createTestArea(String testName, BlockPos pos, Vec3i relativePos, BlockRotation rotation, ServerWorld world) - Mappings:
Namespace Name Mixin selector official a
Lsb;a(Ljava/lang/String;Lhx;Ljb;Lddc;Land;)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
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
-
initStructure
public static StructureBlockBlockEntity initStructure(GameTestState state, BlockPos pos, BlockRotation rotation, ServerWorld world) - Mappings:
Namespace Name Mixin selector official a
Lsb;a(Lro;Lhx;Lddc;Land;)Ldij;
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;
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;
-
forceLoadNearbyChunks
- Mappings:
Namespace Name Mixin selector official b
Lsb;b(Ldyy;Land;)V
intermediary method_22256
Lnet/minecraft/class_4525;method_22256(Lnet/minecraft/class_3341;Lnet/minecraft/class_3218;)V
named forceLoadNearbyChunks
Lnet/minecraft/test/StructureTestUtil;forceLoadNearbyChunks(Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/server/world/ServerWorld;)V
-
clearArea
- Mappings:
Namespace Name Mixin selector official a
Lsb;a(Ldyy;Land;)V
intermediary method_22246
Lnet/minecraft/class_4525;method_22246(Lnet/minecraft/class_3341;Lnet/minecraft/class_3218;)V
named clearArea
Lnet/minecraft/test/StructureTestUtil;clearArea(Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/server/world/ServerWorld;)V
-
getStructureBlockBoxCornerPos
public static BlockPos getStructureBlockBoxCornerPos(BlockPos pos, Vec3i size, BlockRotation rotation) - Mappings:
Namespace Name Mixin selector official a
Lsb;a(Lhx;Ljb;Lddc;)Lhx;
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;
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;
-
getStructureBlockBox
public static BlockBox getStructureBlockBox(BlockPos pos, Vec3i relativePos, BlockRotation rotation) - Mappings:
Namespace Name Mixin selector official b
Lsb;b(Lhx;Ljb;Lddc;)Ldyy;
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;
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;
-
findContainingStructureBlock
public static Optional<BlockPos> findContainingStructureBlock(BlockPos pos, int radius, ServerWorld world) - Mappings:
Namespace Name Mixin selector official a
Lsb;a(Lhx;ILand;)Ljava/util/Optional;
intermediary method_22244
Lnet/minecraft/class_4525;method_22244(Lnet/minecraft/class_2338;ILnet/minecraft/class_3218;)Ljava/util/Optional;
named findContainingStructureBlock
Lnet/minecraft/test/StructureTestUtil;findContainingStructureBlock(Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/server/world/ServerWorld;)Ljava/util/Optional;
-
findNearestStructureBlock
@Nullable public static @Nullable BlockPos findNearestStructureBlock(BlockPos pos, int radius, ServerWorld world) - Mappings:
Namespace Name Mixin selector official b
Lsb;b(Lhx;ILand;)Lhx;
intermediary method_22255
Lnet/minecraft/class_4525;method_22255(Lnet/minecraft/class_2338;ILnet/minecraft/class_3218;)Lnet/minecraft/class_2338;
named findNearestStructureBlock
Lnet/minecraft/test/StructureTestUtil;findNearestStructureBlock(Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/util/math/BlockPos;
-
findStructureBlocks
- Mappings:
Namespace Name Mixin selector official c
Lsb;c(Lhx;ILand;)Ljava/util/Collection;
intermediary method_22258
Lnet/minecraft/class_4525;method_22258(Lnet/minecraft/class_2338;ILnet/minecraft/class_3218;)Ljava/util/Collection;
named findStructureBlocks
Lnet/minecraft/test/StructureTestUtil;findStructureBlocks(Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/server/world/ServerWorld;)Ljava/util/Collection;
-
placeStructureTemplate
private static StructureBlockBlockEntity placeStructureTemplate(GameTestState state, BlockPos pos, BlockRotation rotation, ServerWorld world) - Mappings:
Namespace Name Mixin selector official b
Lsb;b(Lro;Lhx;Lddc;Land;)Ldij;
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;
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;
-
resetBlock
- Mappings:
Namespace Name Mixin selector official a
Lsb;a(ILhx;Land;)V
intermediary method_22368
Lnet/minecraft/class_4525;method_22368(ILnet/minecraft/class_2338;Lnet/minecraft/class_3218;)V
named resetBlock
Lnet/minecraft/test/StructureTestUtil;resetBlock(ILnet/minecraft/util/math/BlockPos;Lnet/minecraft/server/world/ServerWorld;)V
-
isInStructureBounds
private static boolean isInStructureBounds(BlockPos structureBlockPos, BlockPos pos, ServerWorld world) - Mappings:
Namespace Name Mixin selector official a
Lsb;a(Lhx;Lhx;Land;)Z
intermediary method_22247
Lnet/minecraft/class_4525;method_22247(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;Lnet/minecraft/class_3218;)Z
named isInStructureBounds
Lnet/minecraft/test/StructureTestUtil;isInStructureBounds(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/server/world/ServerWorld;)Z
-