Advertisement
Guest User

Untitled

a guest
Dec 30th, 2015
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1. List<BlockPos> scanForPipes(BlockPos startPos,World world,List<BlockPos> preScanned){
  2.         for (EnumFacing currentFacing: EnumFacing.VALUES){
  3.             BlockPos pos=startPos.offset(currentFacing);
  4.             if(world.getBlockState(pos).getBlock()== EnergyMod.conduitEnergy&&!(preScanned.contains(pos))){
  5.                 preScanned.add(pos);
  6.                 scanForPipes(pos,world,preScanned);
  7.             }
  8.         }
  9.         return preScanned;
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement