Class AbstractBlueprintIterator

java.lang.Object
com.ldtteam.structurize.placement.AbstractBlueprintIterator
All Implemented Interfaces:
IBlueprintIterator
Direct Known Subclasses:
AbstractBlueprintIteratorWrapper, BlueprintIteratorDefault, BlueprintIteratorHilbert, BlueprintIteratorInwardCircle, BlueprintIteratorInwardCircleHeight, BlueprintIteratorRandom

public abstract class AbstractBlueprintIterator extends Object implements IBlueprintIterator
This is the blueprint iterator. It's a helper class used to track the progress of one iteration over the structure.
  • Field Details

    • NULL_POS

      public static final net.minecraft.core.BlockPos NULL_POS
      The position we use as our uninitialized value.
    • progressPos

      protected final net.minecraft.core.BlockPos.MutableBlockPos progressPos
      The Structure position we are at. Defaulted to NULL_POS.
    • prevProgressPos

      protected final net.minecraft.core.BlockPos.MutableBlockPos prevProgressPos
      The previous position before the current progress position.
    • size

      protected final net.minecraft.core.BlockPos size
      The size of the structure.
  • Constructor Details

    • AbstractBlueprintIterator

      public AbstractBlueprintIterator(IStructureHandler structureHandler)
      Initialize the blueprint iterator with the structure handler.
      Parameters:
      structureHandler - the structure handler.
    • AbstractBlueprintIterator

      public AbstractBlueprintIterator(IStructureHandler structureHandler, net.minecraft.core.BlockPos size)
      Initialize the blueprint iterator with the structure handler.
      Parameters:
      size - the size.
      structureHandler - the structure handler.
  • Method Details