Search in sources :

Example 1 with BlockRandomPositionGenerator

use of hellfirepvp.astralsorcery.common.util.block.iterator.BlockRandomPositionGenerator in project AstralSorcery by HellFirePvP.

the class CEffectFornax method createPositionStrategy.

@Nonnull
@Override
protected BlockPositionGenerator createPositionStrategy() {
    BlockPositionGenerator gen = new BlockRandomPositionGenerator();
    gen.andFilter(pos -> pos.getY() < 0);
    return gen;
}
Also used : BlockPositionGenerator(hellfirepvp.astralsorcery.common.util.block.iterator.BlockPositionGenerator) BlockRandomPositionGenerator(hellfirepvp.astralsorcery.common.util.block.iterator.BlockRandomPositionGenerator) Nonnull(javax.annotation.Nonnull)

Aggregations

BlockPositionGenerator (hellfirepvp.astralsorcery.common.util.block.iterator.BlockPositionGenerator)1 BlockRandomPositionGenerator (hellfirepvp.astralsorcery.common.util.block.iterator.BlockRandomPositionGenerator)1 Nonnull (javax.annotation.Nonnull)1