//TODO unit test, document, cleanup
private boolean checkDoorSeal(World world, BlockPosition pos, int meta)
    {
        Block otherBlock = world.getBlock(pos.x, pos.y, pos.z);
        int otherMeta = world.getBlockMetadata(pos.x, pos.y, pos.z);
        return (otherBlock == AdvancedRocketryBlocks.blockAirLock && (otherMeta & 1) == (meta & 1)) ||
                (otherBlock != AdvancedRocketryBlocks.blockAirLock && isBlockSealed(world, pos));
    }
private boolean checkDoorSeal(World world, BlockPosition pos, int meta)
{
Block otherBlock = world.getBlock(pos.x, pos.y, pos.z);
int otherMeta = world.getBlockMetadata(pos.x, pos.y, pos.z);
return (otherBlock == AdvancedRocketryBlocks.blockAirLock && (otherMeta & 1) == (meta & 1)) ||
(otherBlock != AdvancedRocketryBlocks.blockAirLock && isBlockSealed(world, pos));
}
private boolean checkDoorSeal(World world, BlockPosition pos, int meta)
{
Block otherBlock = world.getBlock(pos.x, pos.y, pos.z);
int otherMeta = world.getBlockMetadata(pos.x, pos.y, pos.z);
return (otherBlock == AdvancedRocketryBlocks.blockAirLock && (otherMeta & 1) == (meta & 1)) ||
(otherBlock != AdvancedRocketryBlocks.blockAirLock && isBlockSealed(world, pos));
}
private boolean checkDoorSeal(World world, BlockPosition pos, int meta)
{
Block otherBlock = world.getBlock(pos.x, pos.y, pos.z);
int otherMeta = world.getBlockMetadata(pos.x, pos.y, pos.z);
return (otherBlock == AdvancedRocketryBlocks.blockAirLock && (otherMeta & 1) == (meta & 1)) ||
(otherBlock != AdvancedRocketryBlocks.blockAirLock && isBlockSealed(world, pos));
}