Class BlueprintIteratorInwardCircle
java.lang.Object
com.ldtteam.structurize.placement.AbstractBlueprintIterator
com.ldtteam.structurize.placement.BlueprintIteratorInwardCircle
- All Implemented Interfaces:
IBlueprintIterator
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, prevProgressPos, 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, getPrevProgressPos, getProgressPos, getSize, getStructureHandler, hasEntities, includeEntities, increment, isRemoving, 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 interface:IBlueprintIteratorIncrement method, create in implementation.- Returns:
- increment the structure position (y++).
-
decrement
Description copied from interface:IBlueprintIteratorDecrement method, create in implementation.- Returns:
- decrement the structure position (y--).
-
setProgressPos
public void setProgressPos(net.minecraft.core.BlockPos localPosition) Change the current progressPos. Used when loading progress.- Specified by:
setProgressPosin interfaceIBlueprintIterator- Overrides:
setProgressPosin classAbstractBlueprintIterator- Parameters:
localPosition- new progressPos.
-