Class StructureIterators

java.lang.Object
com.ldtteam.structurize.placement.StructureIterators

public class StructureIterators extends Object
Class to store and handle structure iterators.
  • Constructor Details

    • StructureIterators

      public StructureIterators()
  • Method Details

    • registerIterator

      public static void registerIterator(String id, Function<IStructureHandler,AbstractBlueprintIterator> producer)
      Register a new producer.
      Parameters:
      id - the id of the producer.
      producer - the producer.
    • getKeySet

      public static List<String> getKeySet()
      Get a list of all the possible settings.
      Returns:
      the list of settings.
    • getIterator

      public static AbstractBlueprintIterator getIterator(String id, IStructureHandler handler)
      Get an iterator from id and with the applied structure handler.
      Parameters:
      id - the unique id.
      handler - the handler.
      Returns:
      the instance of the iterator.