Class StructureTestUtil

java.lang.Object
net.minecraft.test.StructureTestUtil

public class StructureTestUtil extends Object
Mappings:
Namespace Name
official mn
intermediary net/minecraft/class_4525
named net/minecraft/test/StructureTestUtil
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official c Lmn;c:Lorg/apache/logging/log4j/Logger;
      intermediary field_27813 Lnet/minecraft/class_4525;field_27813:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/test/StructureTestUtil;LOGGER:Lorg/apache/logging/log4j/Logger;
    • field_33173

      public static final String field_33173
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official a Lmn;a:Ljava/lang/String;
      intermediary field_33173 Lnet/minecraft/class_4525;field_33173:Ljava/lang/String;
      named field_33173 Lnet/minecraft/test/StructureTestUtil;field_33173:Ljava/lang/String;
    • testStructuresDirectoryName

      public static String testStructuresDirectoryName
      Mappings:
      Namespace Name Mixin selector
      official b Lmn;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;
    • field_33174

      private static final int field_33174
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official d Lmn;d:I
      intermediary field_33174 Lnet/minecraft/class_4525;field_33174:I
      named field_33174 Lnet/minecraft/test/StructureTestUtil;field_33174:I
  • Constructor Details

    • StructureTestUtil

      public StructureTestUtil()
  • Method Details

    • getRotation

      public static BlockRotation getRotation(int steps)
      Mappings:
      Namespace Name Mixin selector
      official a Lmn;a(I)Lcfk;
      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

      public static int getRotationSteps(BlockRotation rotation)
      Mappings:
      Namespace Name Mixin selector
      official a Lmn;a(Lcfk;)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
    • main

      public static void main(String[] args) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lmn;a([Ljava/lang/String;)V
      intermediary method_36106 Lnet/minecraft/class_4525;method_36106([Ljava/lang/String;)V
      named main Lnet/minecraft/test/StructureTestUtil;main([Ljava/lang/String;)V
    • getStructureBoundingBox

      public static Box getStructureBoundingBox(StructureBlockBlockEntity structureBlockEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Lmn;a(Lcjt;)Ldmv;
      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

      public static BlockBox getStructureBlockBox(StructureBlockBlockEntity structureBlockEntity)
      Mappings:
      Namespace Name Mixin selector
      official b Lmn;b(Lcjt;)Ldaq;
      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;
    • placeStartButton

      public static void placeStartButton(BlockPos pos, BlockPos relativePos, BlockRotation rotation, ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      official a Lmn;a(Lgg;Lgg;Lcfk;Labr;)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 structure, BlockPos pos, Vec3i relativePos, BlockRotation rotation, ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      official a Lmn;a(Ljava/lang/String;Lgg;Lhb;Lcfk;Labr;)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
    • createStructure

      public static StructureBlockBlockEntity createStructure(String structureName, BlockPos pos, BlockRotation rotation, int int2, ServerWorld world, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Lmn;a(Ljava/lang/String;Lgg;Lcfk;ILabr;Z)Lcjt;
      intermediary method_22250 Lnet/minecraft/class_4525;method_22250(Ljava/lang/String;Lnet/minecraft/class_2338;Lnet/minecraft/class_2470;ILnet/minecraft/class_3218;Z)Lnet/minecraft/class_2633;
      named createStructure Lnet/minecraft/test/StructureTestUtil;createStructure(Ljava/lang/String;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/BlockRotation;ILnet/minecraft/server/world/ServerWorld;Z)Lnet/minecraft/block/entity/StructureBlockBlockEntity;
    • forceLoadNearbyChunks

      private static void forceLoadNearbyChunks(BlockPos pos, ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      official a Lmn;a(Lgg;Labr;)V
      intermediary method_22256 Lnet/minecraft/class_4525;method_22256(Lnet/minecraft/class_2338;Lnet/minecraft/class_3218;)V
      named forceLoadNearbyChunks Lnet/minecraft/test/StructureTestUtil;forceLoadNearbyChunks(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/server/world/ServerWorld;)V
    • clearArea

      public static void clearArea(BlockBox area, int altitude, ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      official a Lmn;a(Ldaq;ILabr;)V
      intermediary method_22246 Lnet/minecraft/class_4525;method_22246(Lnet/minecraft/class_3341;ILnet/minecraft/class_3218;)V
      named clearArea Lnet/minecraft/test/StructureTestUtil;clearArea(Lnet/minecraft/util/math/BlockBox;ILnet/minecraft/server/world/ServerWorld;)V
    • getStructureBlockBox

      public static BlockBox getStructureBlockBox(BlockPos pos, Vec3i relativePos, BlockRotation rotation)
      Mappings:
      Namespace Name Mixin selector
      official a Lmn;a(Lgg;Lhb;Lcfk;)Ldaq;
      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 Lmn;a(Lgg;ILabr;)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 Lmn;b(Lgg;ILabr;)Lgg;
      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

      public static Collection<BlockPos> findStructureBlocks(BlockPos pos, int radius, ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      official c Lmn;c(Lgg;ILabr;)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;
    • createStructure

      private static Structure createStructure(String structureId, ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      official a Lmn;a(Ljava/lang/String;Labr;)Ldcu;
      intermediary method_22369 Lnet/minecraft/class_4525;method_22369(Ljava/lang/String;Lnet/minecraft/class_3218;)Lnet/minecraft/class_3499;
      named createStructure Lnet/minecraft/test/StructureTestUtil;createStructure(Ljava/lang/String;Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/structure/Structure;
    • placeStructure

      private static StructureBlockBlockEntity placeStructure(String name, BlockPos pos, BlockRotation rotation, ServerWorld world, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Lmn;a(Ljava/lang/String;Lgg;Lcfk;Labr;Z)Lcjt;
      intermediary method_22252 Lnet/minecraft/class_4525;method_22252(Ljava/lang/String;Lnet/minecraft/class_2338;Lnet/minecraft/class_2470;Lnet/minecraft/class_3218;Z)Lnet/minecraft/class_2633;
      named placeStructure Lnet/minecraft/test/StructureTestUtil;placeStructure(Ljava/lang/String;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/BlockRotation;Lnet/minecraft/server/world/ServerWorld;Z)Lnet/minecraft/block/entity/StructureBlockBlockEntity;
    • loadSnbt

      @Nullable private static @Nullable NbtCompound loadSnbt(Path path)
      Mappings:
      Namespace Name Mixin selector
      official a Lmn;a(Ljava/nio/file/Path;)Lna;
      intermediary method_22253 Lnet/minecraft/class_4525;method_22253(Ljava/nio/file/Path;)Lnet/minecraft/class_2487;
      named loadSnbt Lnet/minecraft/test/StructureTestUtil;loadSnbt(Ljava/nio/file/Path;)Lnet/minecraft/nbt/NbtCompound;
    • resetBlock

      private static void resetBlock(int altitude, BlockPos pos, ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      official a Lmn;a(ILgg;Labr;)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 Lmn;a(Lgg;Lgg;Labr;)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