Class StructureIterators
java.lang.Object
com.ldtteam.structurize.placement.StructureIterators
Class to store and handle structure iterators.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AbstractBlueprintIteratorgetIterator(String id, IStructureHandler handler) Get an iterator from id and with the applied structure handler.Get a list of all the possible settings.static voidregisterIterator(String id, Function<IStructureHandler, AbstractBlueprintIterator> producer) Register a new producer.
-
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
Get a list of all the possible settings.- Returns:
- the list of settings.
-
getIterator
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.
-