Class BlueprintIteratorHilbert
java.lang.Object
com.ldtteam.structurize.placement.AbstractBlueprintIterator
com.ldtteam.structurize.placement.BlueprintIteratorHilbert
- All Implemented Interfaces:
IBlueprintIterator
A hilbert space-filling curve, generalised to any dimensions.
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDecrement method, create in implementation.Increment method, create in implementation.voidsetProgressPos(@NotNull 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
-
BlueprintIteratorHilbert
-
-
Method Details
-
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(@NotNull @NotNull net.minecraft.core.BlockPos localPosition) Description copied from interface:IBlueprintIteratorChange the current progressPos. Used when loading progress.- Specified by:
setProgressPosin interfaceIBlueprintIterator- Overrides:
setProgressPosin classAbstractBlueprintIterator- Parameters:
localPosition- new progressPos.
-