Class BlueprintIteratorInwardCircle
java.lang.Object
com.ldtteam.structurize.placement.AbstractBlueprintIterator
com.ldtteam.structurize.placement.BlueprintIteratorInwardCircle
Iterator which walks the structure from outside in , in a clockwise rotation
-
Nested Class Summary
Nested classes/interfaces inherited from class com.ldtteam.structurize.placement.AbstractBlueprintIterator
AbstractBlueprintIterator.Result -
Field Summary
Fields inherited from class com.ldtteam.structurize.placement.AbstractBlueprintIterator
NULL_POS, progressPos, size -
Constructor Summary
ConstructorsConstructorDescriptionBlueprintIteratorInwardCircle(IStructureHandler structureHandler) Initialize the blueprint iterator with the structure handler. -
Method Summary
Modifier and TypeMethodDescriptionDecrement method, create in implementation.Increment method, create in implementation.iterate(boolean up) Iterate progress pos.voidsetProgressPos(net.minecraft.core.BlockPos localPosition) Change the current progressPos.Methods inherited from class com.ldtteam.structurize.placement.AbstractBlueprintIterator
decrement, getBluePrintPositionInfo, getProgressPos, includeEntities, increment, reset, setRemoving
-
Constructor Details
-
BlueprintIteratorInwardCircle
Initialize the blueprint iterator with the structure handler.- Parameters:
structureHandler- the structure handler.
-
-
Method Details
-
iterate
Iterate progress pos.- Parameters:
up- if bottom up, or top down.- Returns:
- END if finished, or new block if continuous.
-
increment
Description copied from class:AbstractBlueprintIteratorIncrement method, create in implementation.- Specified by:
incrementin classAbstractBlueprintIterator- Returns:
- increment the structure position (y++).
-
decrement
Description copied from class:AbstractBlueprintIteratorDecrement method, create in implementation.- Specified by:
decrementin classAbstractBlueprintIterator- Returns:
- decrement the structure position (y--).
-
setProgressPos
public void setProgressPos(net.minecraft.core.BlockPos localPosition) Change the current progressPos. Used when loading progress.- Overrides:
setProgressPosin classAbstractBlueprintIterator- Parameters:
localPosition- new progressPos.
-