Search in sources :

Example 1 with Region

use of net.minecraft.world.Region in project Mekanism by mekanism.

the class TileEntityDigitalMiner method start.

public void start() {
    if (getLevel() == null) {
        return;
    }
    if (searcher.state == State.IDLE) {
        BlockPos startingPos = getStartingPos();
        searcher.setChunkCache(new Region(getLevel(), startingPos, startingPos.offset(getDiameter(), getMaxY() - getMinY() + 1, getDiameter())));
        searcher.start();
    }
    running = true;
    markDirty(false);
}
Also used : Region(net.minecraft.world.Region) BlockPos(net.minecraft.util.math.BlockPos)

Aggregations

BlockPos (net.minecraft.util.math.BlockPos)1 Region (net.minecraft.world.Region)1