Class BlueprintFrameIterator
java.lang.Object
com.ldtteam.structurize.placement.AbstractBlueprintIterator
com.minecolonies.core.entity.ai.workers.util.BlueprintFrameIterator
- All Implemented Interfaces:
com.ldtteam.structurize.placement.IBlueprintIterator
public class BlueprintFrameIterator
extends com.ldtteam.structurize.placement.AbstractBlueprintIterator
-
Nested Class Summary
Nested classes/interfaces inherited from class com.ldtteam.structurize.placement.AbstractBlueprintIterator
com.ldtteam.structurize.placement.AbstractBlueprintIterator.Result -
Field Summary
FieldsModifier and TypeFieldDescriptionList<net.minecraft.core.BlockPos>List of frame positions.intCurrent progress index.Fields inherited from class com.ldtteam.structurize.placement.AbstractBlueprintIterator
NULL_POS, prevProgressPos, progressPos, size -
Constructor Summary
ConstructorsConstructorDescriptionBlueprintFrameIterator(com.ldtteam.structurize.placement.structure.IStructureHandler structureHandler, List<net.minecraft.core.BlockPos> hframePos, List<net.minecraft.core.BlockPos> vframePos) Initialize the blueprint iterator with the structure handler. -
Method Summary
Modifier and TypeMethodDescriptioncom.ldtteam.structurize.placement.AbstractBlueprintIterator.Resultnet.minecraft.core.BlockPosnet.minecraft.core.BlockPoscom.ldtteam.structurize.placement.AbstractBlueprintIterator.Resultvoidreset()voidsetProgressPos(net.minecraft.core.BlockPos localPosition) Methods inherited from class com.ldtteam.structurize.placement.AbstractBlueprintIterator
decrement, getBluePrintPositionInfo, getSize, getStructureHandler, hasEntities, includeEntities, increment, isRemoving, setRemoving
-
Field Details
-
frameList
List of frame positions. -
index
public int indexCurrent progress index.
-
-
Constructor Details
-
BlueprintFrameIterator
public BlueprintFrameIterator(com.ldtteam.structurize.placement.structure.IStructureHandler structureHandler, List<net.minecraft.core.BlockPos> hframePos, List<net.minecraft.core.BlockPos> vframePos) Initialize the blueprint iterator with the structure handler.- Parameters:
structureHandler- the structure handler.
-
-
Method Details
-
getProgressPos
public net.minecraft.core.BlockPos getProgressPos()- Specified by:
getProgressPosin interfacecom.ldtteam.structurize.placement.IBlueprintIterator- Overrides:
getProgressPosin classcom.ldtteam.structurize.placement.AbstractBlueprintIterator
-
setProgressPos
public void setProgressPos(net.minecraft.core.BlockPos localPosition) - Specified by:
setProgressPosin interfacecom.ldtteam.structurize.placement.IBlueprintIterator- Overrides:
setProgressPosin classcom.ldtteam.structurize.placement.AbstractBlueprintIterator
-
getPrevProgressPos
public net.minecraft.core.BlockPos getPrevProgressPos()- Specified by:
getPrevProgressPosin interfacecom.ldtteam.structurize.placement.IBlueprintIterator- Overrides:
getPrevProgressPosin classcom.ldtteam.structurize.placement.AbstractBlueprintIterator
-
reset
public void reset()- Specified by:
resetin interfacecom.ldtteam.structurize.placement.IBlueprintIterator- Overrides:
resetin classcom.ldtteam.structurize.placement.AbstractBlueprintIterator
-
increment
public com.ldtteam.structurize.placement.AbstractBlueprintIterator.Result increment() -
decrement
public com.ldtteam.structurize.placement.AbstractBlueprintIterator.Result decrement()
-