src/main/java/com/github/klikli_dev/occultism/client/render/ThirdEyeEffectRenderer.java
/**
     * Uncovers the otherworld blocks within MAX_THIRD_EYE_DISTANCE of the player.
     *
     * @param player the player.
     * @param world  the world.
     */
Uncovers the otherworld blocks within MAX_THIRD_EYE_DISTANCE of the player.
@param player the player.
@param world  the world.
Uncovers the otherworld blocks within MAX_THIRD_EYE_DISTANCE of the player . @param player the player . @param world the world .
public void uncoverBlocks(PlayerEntity player, World world, OtherworldBlockTier level) {
        BlockPos origin = player.blockPosition();
        BlockPos.betweenClosed(origin.offset(-MAX_THIRD_EYE_DISTANCE, -MAX_THIRD_EYE_DISTANCE, -MAX_THIRD_EYE_DISTANCE),
                origin.offset(MAX_THIRD_EYE_DISTANCE, MAX_THIRD_EYE_DISTANCE, MAX_THIRD_EYE_DISTANCE)).forEach(pos -> {
            BlockState state = world.getBlockState(pos);
            if (state.getBlock() instanceof IOtherworldBlock) {
                IOtherworldBlock block = (IOtherworldBlock) state.getBlock();
                if (block.getTier().getLevel() <= level.getLevel()) {
                    if (!state.getValue(IOtherworldBlock.UNCOVERED)) {
                        world.setBlock(pos, state.setValue(IOtherworldBlock.UNCOVERED, true), 1);
                    }
                    this.uncoveredBlocks.add(pos.immutable());
                }
            }
        });
    }
public void uncoverBlocks ( PlayerEntity player , World world , OtherworldBlockTier level ) { BlockPos origin = player . blockPosition ( ) ; BlockPos . betweenClosed ( origin . offset ( - MAX_THIRD_EYE_DISTANCE , - MAX_THIRD_EYE_DISTANCE , - MAX_THIRD_EYE_DISTANCE ) , origin . offset ( MAX_THIRD_EYE_DISTANCE , MAX_THIRD_EYE_DISTANCE , MAX_THIRD_EYE_DISTANCE ) ) . forEach ( pos -> { BlockState state = world . getBlockState ( pos ) ; if ( state . getBlock ( ) instanceof IOtherworldBlock ) { IOtherworldBlock block = ( IOtherworldBlock ) state . getBlock ( ) ; if ( block . getTier ( ) . getLevel ( ) <= level . getLevel ( ) ) { if ( ! state . getValue ( IOtherworldBlock . UNCOVERED ) ) { world . setBlock ( pos , state . setValue ( IOtherworldBlock . UNCOVERED , true ) , 1 ) ; } this . uncoveredBlocks . add ( pos . immutable ( ) ) ; } } } ) ; }
Uncovers the otherworld blocks within MAX_THIRD_EYE_DISTANCE of the player.
Uncovers the otherworld blocks within MAX_THIRD_EYE_DISTANCE of the player .