Class TestStructurePlacer

java.lang.Object
net.minecraft.test.TestStructurePlacer
All Implemented Interfaces:
TestRunContext.TestStructureSpawner

public class TestStructurePlacer extends Object implements TestRunContext.TestStructureSpawner
Mappings:
Namespace Name
named net/minecraft/test/TestStructurePlacer
intermediary net/minecraft/class_9120
official uh
  • Field Details

    • MARGIN_X

      private static final int MARGIN_X
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MARGIN_X Lnet/minecraft/test/TestStructurePlacer;MARGIN_X:I
      intermediary field_48497 Lnet/minecraft/class_9120;field_48497:I
      official c Luh;c:I
    • MARGIN_Z

      private static final int MARGIN_Z
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MARGIN_Z Lnet/minecraft/test/TestStructurePlacer;MARGIN_Z:I
      intermediary field_48498 Lnet/minecraft/class_9120;field_48498:I
      official d Luh;d:I
    • testsPerRow

      private final int testsPerRow
      Mappings:
      Namespace Name Mixin selector
      named testsPerRow Lnet/minecraft/test/TestStructurePlacer;testsPerRow:I
      intermediary field_48499 Lnet/minecraft/class_9120;field_48499:I
      official e Luh;e:I
    • testsInCurrentRow

      private int testsInCurrentRow
      Mappings:
      Namespace Name Mixin selector
      named testsInCurrentRow Lnet/minecraft/test/TestStructurePlacer;testsInCurrentRow:I
      intermediary field_48500 Lnet/minecraft/class_9120;field_48500:I
      official f Luh;f:I
    • box

      private Box box
      Mappings:
      Namespace Name Mixin selector
      named box Lnet/minecraft/test/TestStructurePlacer;box:Lnet/minecraft/util/math/Box;
      intermediary field_48501 Lnet/minecraft/class_9120;field_48501:Lnet/minecraft/class_238;
      official g Luh;g:Lfbs;
    • mutablePos

      private final BlockPos.Mutable mutablePos
      Mappings:
      Namespace Name Mixin selector
      named mutablePos Lnet/minecraft/test/TestStructurePlacer;mutablePos:Lnet/minecraft/util/math/BlockPos$Mutable;
      intermediary field_48502 Lnet/minecraft/class_9120;field_48502:Lnet/minecraft/class_2338$class_2339;
      official h Luh;h:Ljh$a;
    • origin

      private final BlockPos origin
      Mappings:
      Namespace Name Mixin selector
      named origin Lnet/minecraft/test/TestStructurePlacer;origin:Lnet/minecraft/util/math/BlockPos;
      intermediary field_48503 Lnet/minecraft/class_9120;field_48503:Lnet/minecraft/class_2338;
      official i Luh;i:Ljh;
    • clearBeforeBatch

      private final boolean clearBeforeBatch
      Mappings:
      Namespace Name Mixin selector
      named clearBeforeBatch Lnet/minecraft/test/TestStructurePlacer;clearBeforeBatch:Z
      intermediary field_52281 Lnet/minecraft/class_9120;field_52281:Z
      official j Luh;j:Z
    • maxX

      private float maxX
      Mappings:
      Namespace Name Mixin selector
      named maxX Lnet/minecraft/test/TestStructurePlacer;maxX:F
      intermediary field_52282 Lnet/minecraft/class_9120;field_52282:F
      official k Luh;k:F
    • statesToClear

      private final Collection<GameTestState> statesToClear
      Mappings:
      Namespace Name Mixin selector
      named statesToClear Lnet/minecraft/test/TestStructurePlacer;statesToClear:Ljava/util/Collection;
      intermediary field_52283 Lnet/minecraft/class_9120;field_52283:Ljava/util/Collection;
      official l Luh;l:Ljava/util/Collection;
  • Constructor Details

    • TestStructurePlacer

      public TestStructurePlacer(BlockPos origin, int testsPerRow, boolean clearBeforeBatch)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/test/TestStructurePlacer;<init>(Lnet/minecraft/util/math/BlockPos;IZ)V
      intermediary <init> Lnet/minecraft/class_9120;<init>(Lnet/minecraft/class_2338;IZ)V
      official <init> Luh;<init>(Ljh;IZ)V
  • Method Details

    • onBatch

      public void onBatch(ServerWorld world)
      Specified by:
      onBatch in interface TestRunContext.TestStructureSpawner
      Mappings:
      Namespace Name Mixin selector
      named onBatch Lnet/minecraft/test/TestRunContext$TestStructureSpawner;onBatch(Lnet/minecraft/server/world/ServerWorld;)V
      intermediary method_61098 Lnet/minecraft/class_4520$class_9117;method_61098(Lnet/minecraft/class_3218;)V
      official a Ltv$c;a(Lash;)V
    • spawnStructure

      public Optional<GameTestState> spawnStructure(GameTestState oldState)
      Specified by:
      spawnStructure in interface TestRunContext.TestStructureSpawner
      Mappings:
      Namespace Name Mixin selector
      named spawnStructure Lnet/minecraft/test/TestRunContext$TestStructureSpawner;spawnStructure(Lnet/minecraft/test/GameTestState;)Ljava/util/Optional;
      intermediary spawnStructure Lnet/minecraft/class_4520$class_9117;spawnStructure(Lnet/minecraft/class_4517;)Ljava/util/Optional;
      official spawnStructure Ltv$c;spawnStructure(Lts;)Ljava/util/Optional;