Interface IBlueprintIterator
- All Known Implementing Classes:
AbstractBlueprintIterator,AbstractBlueprintIteratorWrapper,BlueprintIteratorDefault,BlueprintIteratorHilbert,BlueprintIteratorInwardCircle,BlueprintIteratorInwardCircleHeight,BlueprintIteratorRandom
public interface IBlueprintIterator
-
Method Summary
Modifier and TypeMethodDescriptionDecrement method, create in implementation.decrement(net.minecraftforge.common.util.TriPredicate<BlueprintPositionInfo, net.minecraft.core.BlockPos, IStructureHandler> skipCondition) Decrement the structure with a certain skipCondition (jump over blocks that fulfill skipCondition).getBluePrintPositionInfo(net.minecraft.core.BlockPos localPos) Get the blueprint info from the position.net.minecraft.core.BlockPosGet the last position before the progress pos of the iterator.net.minecraft.core.BlockPosGet the progress pos of the iterator.net.minecraft.core.BlockPosgetSize()Get the size of the blueprint which is iterated overbooleanRetrieve whether the iterator is taking entities into account as wellvoidSet the iterator to include entities.Increment method, create in implementation.increment(net.minecraftforge.common.util.TriPredicate<BlueprintPositionInfo, net.minecraft.core.BlockPos, IStructureHandler> skipCondition) Increment the structure with a certain skipCondition (jump over blocks that fulfill skipCondition).booleanRetrieve whether we're removing blocks at the momentvoidreset()Reset the progressPos.voidsetProgressPos(net.minecraft.core.BlockPos localPosition) Change the current progressPos.voidSet the iterator to removal mode.
-
Method Details
-
increment
AbstractBlueprintIterator.Result increment(net.minecraftforge.common.util.TriPredicate<BlueprintPositionInfo, net.minecraft.core.BlockPos, IStructureHandler> skipCondition) Increment the structure with a certain skipCondition (jump over blocks that fulfill skipCondition).- Parameters:
skipCondition- the skipCondition.- Returns:
- Result of increment.
-
increment
AbstractBlueprintIterator.Result increment()Increment method, create in implementation.- Returns:
- increment the structure position (y++).
-
decrement
AbstractBlueprintIterator.Result decrement()Decrement method, create in implementation.- Returns:
- decrement the structure position (y--).
-
decrement
AbstractBlueprintIterator.Result decrement(net.minecraftforge.common.util.TriPredicate<BlueprintPositionInfo, net.minecraft.core.BlockPos, IStructureHandler> skipCondition) Decrement the structure with a certain skipCondition (jump over blocks that fulfill skipCondition).- Parameters:
skipCondition- the skipCondition.- Returns:
- Result of decrement.
-
setProgressPos
void setProgressPos(net.minecraft.core.BlockPos localPosition) Change the current progressPos. Used when loading progress.- Parameters:
localPosition- new progressPos.
-
getBluePrintPositionInfo
Get the blueprint info from the position.- Parameters:
localPos- the position.- Returns:
- the info object.
-
includeEntities
void includeEntities()Set the iterator to include entities. -
hasEntities
boolean hasEntities()Retrieve whether the iterator is taking entities into account as well- Returns:
- whether the iterator is taking entities into account as well
-
setRemoving
void setRemoving()Set the iterator to removal mode. -
isRemoving
boolean isRemoving()Retrieve whether we're removing blocks at the moment- Returns:
- Whether we are removing blocks at the moment
-
reset
void reset()Reset the progressPos. -
getProgressPos
net.minecraft.core.BlockPos getProgressPos()Get the progress pos of the iterator.- Returns:
- the progress pos.
-
getPrevProgressPos
net.minecraft.core.BlockPos getPrevProgressPos()Get the last position before the progress pos of the iterator.- Returns:
- the prev progress pos.
-
getSize
net.minecraft.core.BlockPos getSize()Get the size of the blueprint which is iterated over- Returns:
- the size
-